Jeremy Stein - Brain

« »

Batch File Backup

To use a (Windows 2000/XP) batch file to back up some other file, do something like this:

FOR /F “tokens=2-6 delims=/: ” %%A IN (“%DATE% %TIME%”) DO COPY “ImportantFile” “ImportantFile_%%C%%A%%B_%%D%%E”

If you also want to input some information to append to the filename, remember that the Set command can take a /P option.

May 3, 2005 No Comments.

No Comments

Be the first to comment!

Leave a Reply

Your email address will not be published. Required fields are marked *

Why ask?

« »