Automatic Shutdown PC With simple batch programming
after knowing the basic programming batch (batch introduction) we know batch programming that can be utilized for the purpose of the computer operating system windows. we can delete or save a file and the other we need using the batch programming, such as deleting a folder, delete a file, save a file, we can even make use FTP batch programming, and many more after we know and understand about bacth programming, this time itcomputerzone will share how to create a simple alarm computer programming using the batch.
code:
shutdown -s -t 3600 -t “the computer will shutdown in 1 hour”
Write the code in Notepad, and save it using the extension .bat
eg. automaticShutdown.bat after that please double-click the automaticShutdown.bat then the computer will shutdown in otomati within 1 hour
code explanation:
shutdown :command to shut down the computer
-s : is the command to do the shutdown not restart
-t : is the code for how many seconds after the computer will shutdown
-C : a comment which will show in the Box Shutdown
the batch program can also be used to restart computer, so we can make setting up the computer will restart after the time at which define, following the example code:
shutdown -r -t 3600 -c “computer will restart after 1 hour”
Related posts:
- Introduction Batch Programming batch programming language is used by the Command Prompt (CMD),...
- Set or changes File Attributes batch programming can utilize for the purpose of the computer...
- Make detection Files with batch using batch programming, we can detect a file on the...
- MS-DOS to reset BIOS password than can be used to create a detection files, changes...
- Simple Steps to anticipate Virus There are a few simple steps to protect your computer...
||
Pingback from Set or changes File Attributes
Time May 14, 2009 at 11:19 am
[...] for the purpose of the computer with the Windows operating system, one of one is to make the automatic shutdown your PC, now we will try to learn how to hide a file using batch programming, the following is the example [...]