Shutdown.exe cannot be found when called from AT

Posted on 2009-02-09
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

    Try removing the quotes
    LVL 14

    Accepted Solution

    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

    Nevermind, quotes dont make a difference.
    Try psshutdown instead

    LVL 67

    Assisted Solution

    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

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Title # Comments Views Activity
    How to install or execute .RUN type file? 8 209
    external hard drive and Raidon 3630 5 106
    Hyper V vm 4 115
    Incredibly nasty malware/adware 15 56
    Step by step guide to Clean and Sort your windows registry! Introduction: Always remember: A Clean registry = Better performance = Save your invaluable time In this article we're going to clear our registry manually! Yes, manually! The e…
    It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now