Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I had a bat file with shutdown -a for when I accidentally shut down pc bit it gave me this error when I had the chance to use it (i.e. after shutdown had been triggered):

0xc0000142

But it works fine when it isn't needed. (i.e. exits with Unable to abort the system shutdown because no shutdown was in progress.(1116)) I'm running Windows 7x64

share|improve this question
    
can you post the content of your batch file? –  Ray Cheng Nov 5 '12 at 6:30
    
Just wondering why you would choose to put a shutdown abort command into a batch file? FYI the help page does mention that the abort command will only work during the timeout period (set by /t N, where N=number of seconds to wait). Is shutdown being called via another batch file? –  Richie086 Nov 5 '12 at 6:42
    
shutdown -s -t 3000 shutdown -a –  Khaleel Nov 5 '12 at 6:42
    
The batch file just has shutdown -a. I made it following an advice that in case I accidentally started the sequence to shit down but still have enough time to run a shutdown -a command. But I guess it's not for that purpose. –  laggingreflex Nov 5 '12 at 10:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.