I'm trying to set up a few tasks for the scheduler on Windows NT Server. There is no fancy gui to accomplish this, at least none that I have found and I don't really want to another program on the server.
Here is what I want to execute:
FOR /F "tokens=2,3,4* delims=/ " %a IN ('date /t') do echo Date: %a-%b-%c >> system.log
I tried typing:
AT 17:00 /INTERACTIVE "cmd /c FOR /F "tokens=2,3,4* delims=/ " %a IN ('date /t') do echo Date: %a-%b-%c >> system.log".
It's supposed to output the date to the system.log file. However that doesn't work. It just gives the status "error". I tried a few other minor changes to that line too, but nothing really work. Any ideas?
Here is what I want to execute:
FOR /F "tokens=2,3,4* delims=/ " %a IN ('date /t') do echo Date: %a-%b-%c >> system.log
I tried typing:
AT 17:00 /INTERACTIVE "cmd /c FOR /F "tokens=2,3,4* delims=/ " %a IN ('date /t') do echo Date: %a-%b-%c >> system.log".
It's supposed to output the date to the system.log file. However that doesn't work. It just gives the status "error". I tried a few other minor changes to that line too, but nothing really work. Any ideas?