Command shutdown/restart.cmd

»» 22.APR.2024 / updated: ... ---

Command shutdown/restart.cmd

A very simple script that shuts down, restarts, hibernates or disconnects the computer. All in one file, just select the action to perform.

By clicking on the link below, you can download the command file as a ZIP compressed file and then unzip it (for example to your desktop).

Downloading "shutdown/restart.cmd...
Windows 11 news in hungaryan language

Windows Blog-news

download Windows 10 ISO and updates

Windows 10 updates

download Windows 11 ISO and updates

Windows 11 updates


Quick Tip: Close all programs, documents, images, videos before you shut down, restart, hibernate or log out, because running this command will do the job immediately without warning.

Using shutdown/restart.cmd:

Left-click the downloaded ZIP file. In the File Manager window that appears, left-click the shutdown/restart.cmd and, while holding down the mouse button, drag the cursor, for example: on the Desktop or anywhere else (it's easy to extracted single file or multiple files in Windows 11).

Attention: When using Windows 10 and older operating systems, unpacking ZIP compressed files may differ from what is described here.

Extract the ZIP file

After unpacking, click on the file with the left mouse button. After that, the log file opens and you can select how to close your computer. It can also be run as an administrator, but it is not necessary (right-click, then select the Run as administrator link).

After starting, the program asks to write the number 1, 2, 3, or 4 in the command file window that appears, depending on the operation want to do:

- To Logoff, use your keyboard to enter the number 1, then press the Enter button on your keyboard.

- To Reboot enter number 2.

- To Hibernate enter number 3.

- To Shutdown enter number 4.

To Shutdown enter number 4

Quick tip: The examples listed are for Windows PCs and tablets, but some devices may not support all methods.

Close Windows from the Start menu:

The same operations can also be performed from the computer's Start menu. The example below shows how:

The easiest way to shut down your computer. Click the Windows-Logo button on the taskbar, then in the Start menu window that appears, click the Power button in the lower-right corner. Then select the desired action in the small window that appears (the hibernate option is missing here). Enabling hibernate in the Power menu...

Close Windows from the Start menu

END