Automatic Shutdown PC With simple batch programming
May 13, 2009after 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”
- How to Write a batch File Batch (with CMD code), can do something on windows computer...
- Batch File Copy Folder Tricks This is the simple trick of batch file code to...
- 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...
- Create Application Based Dos Promt We can use MS-DOSĀ to create applications on the computer....
- Make detection Files with batch using batch programming, we can detect a file on the...
- Dos Commands In XP Dos Commands is easy to use to make little tool...
- 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...
- Practitioners programming perl You may never make a program with a shell script....
[...] 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 [...]