I am using the following:
for /f "tokens=2,3,4 delims=/ " %%a in ('date /t') do set FILENAME=%%a%%b
echo %filename%
to create a file that needs to be in MMDD format.
My problem is that the day needs to reflect yesterday's date. For example if I run this I get 0618 it needs to say 0617. Any suggestions?
Thanks,
PDuncan
PDUNCAN - MEMPHIS, TN
When I die, I want to die like my grandfather-- who died peacefully in
his sleep. Not screaming like all the passengers in his car.
for /f "tokens=2,3,4 delims=/ " %%a in ('date /t') do set FILENAME=%%a%%b
echo %filename%
to create a file that needs to be in MMDD format.
My problem is that the day needs to reflect yesterday's date. For example if I run this I get 0618 it needs to say 0617. Any suggestions?
Thanks,
PDuncan
PDUNCAN - MEMPHIS, TN
When I die, I want to die like my grandfather-- who died peacefully in
his sleep. Not screaming like all the passengers in his car.