Enter your E-Mail to subscribe and You will get a confirmation mail - read it.

Enter your email address:

Delivered by FeedBurner

Monday, December 24, 2007

Batch files Magic :Shutdown, Restart, And Stand By

In MS-DOS,OS/2, and windows, a batch file is a text file containing a series of commands intended to be executed by the command interpreter. When a batch file is run, the shell program (usually COMMAND.COM or cmd.exe) reads the file and executes its commands, normally line-by-line. Batch files are useful for running a sequence of executable automatically and are often used by system administrator to automate tedious processes.

Here is a technique to shutdown, restart , and standby of your PC by using batch file.

Just copy and paste below text in a notepad and save it "shutdown.bat" , "restart.bat",and "standby.bat" respectively.

Shout down: shutdown.exe -s -t 0
Restart:
shutdown.exe -r -t 0
Standby:
rundll32.exe PowrProf.dll, SetSuspendState Standby


You can see those files like this

To put those file in quick launch button menu you have to fallow these steps

Just drop and drag those file into quick launch menu.
Right click on each short cut and click on change icon.
Then you can change those file appearances according to your wish.

By these way you can easily access Shutdown,Restart,and standby options.