General discussion
-
Topic
-
get .bat file to run on XP?
LockedI have a multi-function batch file that runs fine on Win 2k. However, when I try to run it on XP, the command prompt box quickly opens then closes.
I have tried going to the properties for the .bat file and setting compatibility for Win 2000, but this does not fix it.
I am wondering if XP doesn’t use CHOICE like 2k? Here’s the first part of my .bat file:
:MENU
@ECHO OFF
CLS
ECHO 1. Add New Client
ECHO 2. Backup docs, webs, pics, bookmarks, skins
ECHO 3. Transfer recent RE files to flash card
ECHO 4. Delete antivirus sig files and empty junk email folder
ECHO 5. Transfer Shared folder mp3s to mpeethree/unsorted
ECHO 6. ESP + Commission Calculating Spreadsheet
ECHO 7. E-mail latest version of My Tools.bat
ECHO 8. ExitCHOICE /c:12345678 /n Select task:
:: /n switch hides selection #s
:: errorlevels must be in descending order
IF ERRORLEVEL 8 GOTO END
IF ERRORLEVEL 7 GOTO SEVEN
IF ERRORLEVEL 6 GOTO SIX
IF ERRORLEVEL 5 GOTO FIVE
IF ERRORLEVEL 4 GOTO FOUR
IF ERRORLEVEL 3 GOTO THREE
IF ERRORLEVEL 2 GOTO TWO
IF ERRORLEVEL 1 GOTO ONEAny suggestions on how to run this on XP?
Thanks for your input.