Did you know Windows can be shut down via command prompt! Yeah of course you did just that you might not be familiar with the exact parameters which trigger this desired action right! But why on earth would anyone want to shutdown Windows with command prompt where there is much easier option by pressing shutdown button in start menu. Well here is the answer.Open command prompt and type in this:
To shutdown computer type shutdown -s
To restart computer type shutdown -r
To logoff computer type shutdown -l
To override computer from shutting down once a call has been made type shutdown -a. Press enter and if you were quick enough you will prevent disaster. Wait for the confirmation message to see if you were successful.





6 Comments:
WOW...Great info, i will try if it works on my pc.
Thomas, is there any trick for setting the timer for shutting down in cmd? The default shutdown time is "less than a minute" -i wish i could make the timer longer or shorter...:(
Hi there Be James.
I have to be honest and tell you that your questions is beyond my knowledge. I suspect this is possible by engaging task scheduler via CMD.
However if you want to schedule shutdown timer to a longer period I know of an excellent free third-party program, that will do the job for you and much more than just scheduled shutdown.
Get it here
Shutter
@Be James,
It is possible to set the timings by using .bat file, which uses the same command. It has an option -t (which mean time). By specifying the time alond with -t option you can set the shoutdown timings..if you want to do it using a .bat file automatically then you can refer to this article @ http://technotip.org/notepad-bat-file-shutdown-windows-xp
Thanks Satish for explanation.
Thanks to SATISH for this brilliant tip and to Thomas for approving the post!
Post a Comment