TechFacts007.in

Be Smart, Be Technical

Dedicated Server

Shutdown Any PC With CMD Command – (Shutdown / Restart / Hybernate)

CMD png

This Post Is Related To CMD Command. This can help you to Shutdown your PC very Smartly or You can also Shutdown Your Computer or PC with only A Single Click.

 

Just follow these few steps and ENJOY…

 

First, You Have To Create A DOS Command using any text editor app or Notepad.


 

Shutdown Command

Step 1 : Open any text editor app. (We recommend to use Notepad or Notepad++)

 

Step 2 : Type Code : 

@echo off
shutdown -s
goto exit

Note: Please Use shutdown -s -t 60 for 60 seconds timer shutdown. Here 60 is the shutdown delay time. after 60 seconds the PC will automatically Shutdown. You can use any value for any time. for example for 2 minutes use 120, 5 Minutes = 300… etc…

Use

@echo off
shutdown -s -t 60
goto exit

Step 3 : Save this code with any name and use .bat Extension. 

VPS Hosting
  • Example 1 : Shutdown.bat
  • Example 2 : XYZ.bat
  • Example 3 : MY_PC.bat

You can simply download the command file from this download link

Download Now

 

In CMD You have to type only shutdown -s to shutdown.

Example : 

  • c:/Users/Admin>shutdown -s

 

Restart Command

Step 1 : Open any text editor app. (We recommend to use Notepad or Notepad++)

 

Step 2 : Type Code : 

@echo off
shutdown -r
goto exit

Step 3 : Save this code with any name and use .bat Extension. 

  • Example 1 : Restart.bat
  • Example 2 : XYZ.bat
  • Example 3 : MY_PC.bat

You can simply download the command file from this download link

Download Now

 

In CMD You have to type only shutdown -r to Restart.

Example : 

  • c:/Users/Admin>shutdown -r

 

Hybernate Command

Step 1 : Open any text editor app. (We recommend to use Notepad or Notepad++)

 

Step 2 : Type Code : 

@echo off
shutdown -h
goto exit

Step 3 : Save this code with any name and use .bat Extension. 

  • Example 1 : Hybernate.bat
  • Example 2 : XYZ.bat
  • Example 3 : MY_PC.bat

You can simply download the command file from this download link

Download Now

 

In CMD You have to type only shutdown -h to Hybernate.

Example : 

  • c:/Users/Admin>shutdown -h


After Completing these steps you have to just Run these Files using Double click. 

  • For Shutdown : Double Click On The Shutdown Command File.
  • For Restart : Double Click On The Restart Command File.
  • For Hybernate : Double Click On The Hybernate Command File.

To Abort Any Command After Execution Please Use shutdown -a to abort.