Shutdown.exe cannot be found when called from AT

Posted on 2009-02-09
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??
Question by:Alistair7
LVL 47

Expert Comment

by:Donald Stewart
ID: 23592674
Try removing the quotes
LVL 14

Accepted Solution

igor-1965 earned 800 total points
ID: 23592720
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"
LVL 47

Assisted Solution

by:Donald Stewart
Donald Stewart earned 600 total points
ID: 23592722
Nevermind, quotes dont make a difference.
Try psshutdown instead
LVL 71

Assisted Solution

Qlemo earned 600 total points
ID: 23592724
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.


Author Closing Comment

ID: 31544640
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.

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question