Was on this site and found code to rename a file using batch but I can not get it to work
I have a file master.bak in folder T:\backup\master
I would like to rename it with a current date
rename master.bak master03232009.bak
Here is my batch file
@echo off
T:
cd\backup\master
for /f "tokens=1-5 delims=/ " %%d in (%date%) do rename "master.bak" master%%e=%%f-%%g.bak
exit
the message I get is
The system cannot find the file mon.
Any idea on what is wrong?
Thanks
Tom