Thursday, October 5, 2017

How to shut down or restart the computer with a batch file

Batch File


Windows Vista, 7, 8, and 10

Microsoft Windows Vista, 7, 8, and 10 includes a command to shutdown the computer through the command line, shortcut, or batch files. Below are the steps required for creating a shutdown, restart, and hibernate shortcut.


1. Create a new shortcut.

2. For the location of the shortcut type one of the below commands depending on what you want to do.

To shutdown the computer type the below line in the location text field.



To restart the computer type the below line in the location text field.


3. Click Next, and then for the name of the shortcut type either Shut down or Restart and then click Finish.

After completing the above steps, double-click the shortcut icon to shut down, restart, or put the computer into hibernation.

No comments:

Post a Comment