How To Create A Program To Shutdown Windows Computer At A Specific Time

Hello Everyone 
I Am Green ViruZ

Here i am going to show u how to make a program to shutdown windows computer at specific time


Step 1 : Open Notpad.exe
Step 2 : Type The Following Code
             shutdown -s -f -t 00
[note : above code explained
shutdown  for telling our computer to open shutdown program

-s mean to shutdown pc , you can use -r instead of -s , - r mean to restart
-f mean to force quit running application  and  -t mean time in second , what ever number u enter after -t it mean shutdown you pc after that much second ]

Step 3 : save it as "anyname".bat (dont forget to save in .bat format)  

And when you double click the saved file , then it will  shutdown the computer after thee time you provided 

If you want to put a custom message with that then same code followed by -c "write anything here"

  •  example for shutting down with custom comment
   shutdown -s -f -t 10 -c "Green ViruZ"
 this will shutdown pc after 10 second and also shows a comment Green ViruZ

  • example for restarting with custom comment 
 shutdown -r -f -t 10 -c "Green ViruZ"
 this will restart you pc after 10 second and also shows a comment Green ViruZ 
 

No comments:

Post a Comment