Shutdown.exe cannot be found when called from AT
Posted on 2009-02-09
I have tried the following under XP pro:
AT 14:05 /interactive /every:ma,ti,on,to,f "C:\windows\system32\shutdown.exe" -s -f -t 60
AT 16:05 /interactive /every:ma,ti,on,to,f "%windir%\system32\shutdown.exe" -s
By then typing AT, I can see that the various jobs have been saved and ready to run.
But when they try to run, there is an error which in the event viewer says "cannot find given file" (or something like that - it's in Norwegian which also explains the strange spelling of the days.)
It looks like it cannot find "shutdown.exe"
Shutdown.exe is indeed in system32. And if I copy and paste the last half of the above line at the dos prompt, the PC shuts down as expected with a 60 second delay.
Why does it not find the program??