Wondering if anyone knows if this is possible:
I am trying to schedule a batch file and output the results to a text file that contains the date in the filename.
I have tried the following and it doesn't work. The task runs with an 0x1 in the last Result.
C:\Test\test.bat > log_%DATE%.txt
Typing %DATE% into DOS gives me 07 but the scheduled task doesn't recognise this variable.
Thanks for your help.