Hello all,
I wrote this litte batch file to copy the backup file and rename it to the date which works on xp pcs (date format mon 07/05/2009) but does not work on win98 pcs (date format mon 07-05-2009). Please help, thanks
@echo off
cd\backup
copy backup.tdf temp.tdf
for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "temp.tdf" sa24-%%e-%%f-%%g.tdf
:end
exit
I wrote this litte batch file to copy the backup file and rename it to the date which works on xp pcs (date format mon 07/05/2009) but does not work on win98 pcs (date format mon 07-05-2009). Please help, thanks
@echo off
cd\backup
copy backup.tdf temp.tdf
for /f "tokens=1-5 delims=/ " %%d in ("%date%") do rename "temp.tdf" sa24-%%e-%%f-%%g.tdf
:end
exit