Im trying to make a batch file with choices but its not working!!! can someone tell me how to do it?
-
ok so im good at this stuff but i can seem to get this one im on windows 7 beta so if that dos anything, ok heres my batch file, i just started making batch files this wendesday so its not that impressive yet.here it is... btw if you know any cool commands i can do to also add in put them in too!!! thanks in advance! ECHO WELCOME TO YOUR CHOICE MENU FOR BATCH FILES! pause CLS echo 1) THIS WILL FORCE QUIT ALL APPLICATIONS AND LOGOUT ECHO WARNING SAVE ALL DATA BEFORE DOING THIS!!! ECHO ----------------------------------------… ECHO 2) THIS WILL BACKUP YOU DRIVE AND MAKE A FOLDER ECHO WITH ALL C:\ FILES! choice /c:123 if errorlevel 3 ==C GOTO C if errorlevel 2 ==B GOTO B if errorlevel 1 ==A GOTO A :B color 4 CLS :A color 4 CLS echo THIS OPTION WILL CLOSE ALL APPLICATIONS AND LOGOUT, echo IF YOU HAVE SENSITIVE INFOMATIONS STILL NOT SAVED TO echo YOUR DIRVE PLEASE DO SO NOW OR SUFFER THE CONCEQUENCES!!! PAUSE CLS ECHO GOODBYE! TIMEOUT 1 shutdown /f :B COLOR 2 CLS ECHO THIS OPTION WILL COPY ALL C:\ FILES INTO A FOLDER ECHO CALLED 'C:\Users\Public\Public Documents\BACKUP' PAUSE MKDIR C:\Users\Public\Public Documents\BACKUP @ECHO ON xcopy c:\ C:\Users\Public\Public Documents\BACKUP /E/W/C/I/F/G/H/R/-Y/ @ECHO OFF ECHO OPENING ENCLOSED FOLDER IN... TIMEOUT 3 EXPLORER C:\Users\Public\Public Documents\BACKUP
-
Answer:
I think choice was a Win9X tool only. The way to do it now is: set /p input=Enter a value(1,2,3) if %input% = 1 goto choice1 if %input% = 2 goto choice2 ... goto badinput Also, you'll want quotes around the path names that have spaces in them.
joeywolf... at Yahoo! Answers Visit the source
Related Q & A:
- Can someone tell me how to put a backround for my psp and put pictures in it?Best solution by Yahoo! Answers
- Can someone tell me what a career in advertising would be like?Best solution by aef.com
- Can someone tell me how to pick a lock?Best solution by wikihow.com
- Can someone tell me how to put a picture on here?Best solution by Yahoo! Answers
- Can please someone tell me how can I repair my computer?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.