Shutdown computer with a batch program

avatar January 15, 2012 by: 2

 

 

 

 

 

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
Add a Comment on "Shutdown computer with a batch program"

    2 Comments on "Shutdown computer with a batch program"

  1. avatar Trinity says:

    Major thanks for the article post. Will read on…

Follow us

About Techdigit

Tech Digit comprises of many authors but the CEO of techdigit is Sriram who is an internet Marketer and Entrepreneur.