I have a batch file that executes some SQL statements on a text file and then renames the file with the date...
from SL1.dat to SL12006-11-19.bak
my problem is that it doesn't rename the file with the Date... only renames it to SL1.bak
here's the dos code:
FOR /F "TOKENS=2-4 DELIMS=/ " %%F IN ('DATE /T') DO (SET TODAY=%%F%%G%%H)
REN SL1.dat SL1%TODAY%.bak
is there an error in the code? does it matter if I'm on XP and it was originally written on 2000?
what should I correct?
Thanks! I'm on a deadline... thanks!