T
Tim
I've written an expression in that allows me to rename a
file with the current date stamp.
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set Today=%%a-%%b-%%c)
rename c:\winzip.log winzip%TODAY%.log
The output generated would be: winzip10-09-2003.log
My problem is that, since the data that is renamed is actually
yesterday's data, the date is always one day ahead of the date that
the data actually represents.
I want it to read: winzip10-08-2003.log
My question is: Is there a way to automatically rename a file with
yesterday's date?
Any help would be appreciated.
Thank you.
file with the current date stamp.
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set Today=%%a-%%b-%%c)
rename c:\winzip.log winzip%TODAY%.log
The output generated would be: winzip10-09-2003.log
My problem is that, since the data that is renamed is actually
yesterday's data, the date is always one day ahead of the date that
the data actually represents.
I want it to read: winzip10-08-2003.log
My question is: Is there a way to automatically rename a file with
yesterday's date?
Any help would be appreciated.
Thank you.