In order to shutdown your computer you generally follow a regular procedure. Instead of using the regular procedure ( Start > Shutdown) we here implement a procedure to shutdown computer with a batch file. Type the following code in a notepad and save it with .bat extension.
@echo off shutdown -s
Use: When you become a good programmer, you can use this .bat file to shutdown your computer automatically.
You can also use following codes to use your shutdown interactively. There are various option
-a :: To stop computer from shutting down( If a shutdown process is already initiated)
-f :: Force shutdown
-t :: To specify a time limit
-c :: To provide a comment status
Share this Story







2 Comments on "Shutdown computer with a batch program"
Major thanks for the article post. Will read on…
What nice answer