G
Guest
This is a batchfile I am using today.
@echo off
for /F "tokens=1-5" %%a in ('now.exe') do set MyDate=%%e-%%b-%%c
printmig -b C:\%MyDate%.cab \\server
So now I also would like to generat a different txt file containing the date
when this batchfile runs.
I am running this from a w2k workstation. I could use the date /t command
but I don´t get the right format I wish too. My output should be yyyyy-mm-dd.
When using a w2k workstation the output looks like Fr yyyy-mm-dd. I am sure
it is an easy coomand but I can´t get it right.
Could anyone help me??
Regards
Henrik
@echo off
for /F "tokens=1-5" %%a in ('now.exe') do set MyDate=%%e-%%b-%%c
printmig -b C:\%MyDate%.cab \\server
So now I also would like to generat a different txt file containing the date
when this batchfile runs.
I am running this from a w2k workstation. I could use the date /t command
but I don´t get the right format I wish too. My output should be yyyyy-mm-dd.
When using a w2k workstation the output looks like Fr yyyy-mm-dd. I am sure
it is an easy coomand but I can´t get it right.
Could anyone help me??
Regards
Henrik