2Jul/100
Backuping Files with BAT
When I need to backup a file in my bat script, I usually do like this:
copy /Y fileToBackup fileToBackup.bak_%date%_%time:~0,2%%time:~3,2%
Which gives a nice timestamp in the filename, for example:
fileToBackup.bak_29-06-2010_1738