Firstly see, Shutdown computer with a batch program
Type the following code in a notepad and save it with .bat extension
@echo off shutdown -s -f -t 30 -c "System is shutting down"
The code works in following way!!
-s is used to perform normal shutdown
-f is used for force shutdown.
- t is used to specify the number of seconds after which the computer has to shutdown
-c is used to display the comment while a shutdown is initiated.
Now, once you type the code and run it, How do you stop shutdown once after its initiated?
Well the answer is simple use the code with -a option.
@echo off shutdown -a
Save it with .bat extension. You need to run it as quickly as possible or else it may be too late. You can also run this in other way. Type “shutdown -a” without quotes in Run and stop computer from shutting down. But, make sure that you do it very fast. It should be within 3 to 4 seconds after you initiated shutdown process.






