Microsoft Windows Vista, 7, and 8 includes a similar shutdown command feature that XP did 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.
Microsoft Windows XP includes a new shutdown command that allows users to shutdown the computer through the command line, shortcut, or batch files. Below are the steps required for creating a shutdown and restart shortcut.
Note: When typing the above two lines, spacing is important. Also, make sure to enter the exit line at the bottom of the batch file in case Windows cannot restart the computer because of the open MS-DOS window.
Microsoft Windows 98 and Windows ME users can also run the below command to perform different forms of rebooting or shutting down.
rundll32.exe shell32.dll,SHExitWindowsEx n
Where n is equal to one of the numbers below, depending on the action you want the computer to perform.