I found out how to shutdown the computer using a batch file.. and how to set a specified time to shut off...
try the following code...that having some menu selection
try the following code...that having some menu selection
"paste those code in note pad and save as a bat file."
@ECHO OFF
CLS
:Start
ECHO When do you want to shutdown?
ECHO Press number of choice followed by the Enter key
ECHO 1: Fifteen Minutes
ECHO 2: Thirty Minutes
ECHO 3: Sixty Minutes
ECHO 4: Quit
ECHO When do you want to shutdown?
ECHO Press number of choice followed by the Enter key
ECHO 1: Fifteen Minutes
ECHO 2: Thirty Minutes
ECHO 3: Sixty Minutes
ECHO 4: Quit
SET Choice=
SET /P Choice=""
SET /P Choice=""
IF '%Choice%'=='1' GOTO Fifteen
IF '%Choice%'=='2' GOTO Thirty
IF '%Choice%'=='3' GOTO Sixty
IF '%Choice%'=='4' GOTO End
CLS
ECHO "%Choice%" is not valid
ECHO Try again
GOTO Start
IF '%Choice%'=='2' GOTO Thirty
IF '%Choice%'=='3' GOTO Sixty
IF '%Choice%'=='4' GOTO End
CLS
ECHO "%Choice%" is not valid
ECHO Try again
GOTO Start
:Fifteen
SHUTDOWN -S -F -T 900
GOTO End
SHUTDOWN -S -F -T 900
GOTO End
:Thirty
SHUTDOWN -S -F -T 1800
GOTO End
SHUTDOWN -S -F -T 1800
GOTO End
:Sixty
SHUTDOWN -S -F -T 3600
GOTO End
SHUTDOWN -S -F -T 3600
GOTO End
:End
CLS
CLS
for executable file click download
"dit that program and change the time in seconds" if u like share
No comments:
Post a Comment