We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


Shutdown.exe cannot be found when called from AT

Alistair7 asked
Medium Priority
Last Modified: 2012-05-06
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.
"%windir%\system32\shutdown.exe" -s

Why does it not find the program??
Watch Question

DonNetwork Administrator

Try removing the quotes
Have you tried to create a batch (let's say, C:\windows\system32\shtdn.bat) containing the line
"C:\windows\system32\shutdown.exe" -s -f -t 60

and then use AT 14:05 /interactive /every:ma,ti,on,to,f "C:\windows\system32\shtdn.bat"

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
DonNetwork Administrator
Nevermind, quotes dont make a difference.
Try psshutdown instead
Qlemo"Batchelor", Developer and EE Topic Advisor
Top Expert 2015
Starting with W2000, you should not use AT anymore, as there are several flaws. Instead, use Scheduled Tasks, e.g. with schtasks utility, to create jobs.


Thanks for the help.  I can't recall now how I finally resolved the issue.  But AT shutdown is now shutting down the PCs everyday.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.