creat batch simple alarm
bath programming can be used for various purposes, such as to keep the file, to configure the Windows Explorer on the windows computer, to set the attributes, and other purposes. if we know the basic programming next batch, we can develop for various purposes other windows on the computer. This time we will create a tool using a simple batch program, namely to create an alarm (alarm shutdow computer). following code:
@echo off
title Simple Pc Alarm by www.itcomputerzone.com
:alarm
echo PC Alarm
echo =========
echo.
echo +———————————————–+
echo + +
echo + Example : 60 (for shutdown after 1 minutes) +
echo + 3600(for shutdown after 1 hour) +
echo + +
echo.+———————————————–+
echo.
set /p a=Time to Shutdown pc (in seconds):
set b=You Have done to set alarm for %a% seconds…
shutdown -s -t %a% -c “%b%”
exit
Description Code :
@echo off : To turn off Display Messages
Title : set the window title for the command promt windows
echo : display messages
set : display, sets, or removes cmd.exe environment variables
/p a= to input variable a from user
shutdown
-s : to turn off computer (shutdown)
-t : to set time to shutdown
-c : display message on shutdown box
it’s simple alarm to shutdown PC, from the basic code we know, on next we can creat more batch program, such as to disable CMD, to disable Windows Task Manager, to disable Registry Tools, trick to keep a text file and other windows computer utility we need.
No related posts.
Pingback from Simple file detector with batch
Time July 13, 2009 at 2:56 am
[...] Creat batch simple Alarm or more computer [...]