Step1. Click on Start and search Notepad. Open your notepad and start typing;
shutdown -s -t 60
Note: 60 means 60 seconds that is after 1-minute computer will shutdown, you can set as per your timing, if you want to shutdown your computer after one hour from the time you double click on that file, then 60 seconds = 1 minute and 60sec x 60minute = 3600, mean your computer will shutdown after one hour.
Note: Only and after double click on that file means your shutdown countdown started.
Step2. After writing the code on your notepad now just save your notepad but clicking on the file and select Save as option
Save your Shutdown File
Step3. just rename your file name as per your desire but at the end of the name put .bat, suppose your file name is CodingSecurity then it should look like CodingSecurity.bat at the time of renaming your file, and then Select All Files from Save As Type, Now click on Save.
shutdown -s -t 60
Note: 60 means 60 seconds that is after 1-minute computer will shutdown, you can set as per your timing, if you want to shutdown your computer after one hour from the time you double click on that file, then 60 seconds = 1 minute and 60sec x 60minute = 3600, mean your computer will shutdown after one hour.
Note: Only and after double click on that file means your shutdown countdown started.
Step2. After writing the code on your notepad now just save your notepad but clicking on the file and select Save as option
Save your Shutdown File
Step3. just rename your file name as per your desire but at the end of the name put .bat, suppose your file name is CodingSecurity then it should look like CodingSecurity.bat at the time of renaming your file, and then Select All Files from Save As Type, Now click on Save.
No comments:
Post a Comment