.bat file help....

lil rahmer

New Member
@echo off
C:
set /p choice=Do you wish to continue?
If "%choice%"==no GOTO SHUTDOWN
echo It didn't work
:SHUTDOWN
set /p=Your computer is about to shutdown.Do you wish to continue?
If "%choice%"==no shutdown -a
exit
If "%choice%"==yes shutdown -s -t:90
pause
exit


This is my first .bat file that I've ever made so im sure it could be improved alot, but the main reason I need help is When I start it it asks If I wish to continue(and eventually I'm going to put a program In place of the "it didn't work") I say no but instead of bringing me to shutdown it just keep going. I use windows xp service pack 2. Thanks for the help in advance.
 
Back
Top