To clarify upon the title: I'm creating a batch file to use the CHOICE
command and based on the input key I plan to call a batch file containing the server to join and what program to do it with.
The problem is that when run the command loops its output infinitely in the cmd window. I am looking for a way to display the /M, not looping the output. Ive tried @ECHO off but that results in the /M not being displayed.
My research thus far is My Batch File keeps looping, but why? http://ss64.com/nt/choice.html
and a few wikis about basic commands.
My code thus far is
CD C:\Users\Chris\Desktop
CHOICE /C 12 /M Select [1] Private server or [2] Other
IF errorlevel 2 call "other.bat"
IF errorlevel 1 call "private.bat"
the original before i attempted any of the fixes ive found was
CHOICE /C 12 /M Select [1] Private server or [2] Other
IF errorlevel 2 call C:\Users\Chris\Desktop\other.bat
IF errorlevel 1 call C:\Users\Chris\Desktop\private.bat
I have two empty batch files on the desktop at the above paths, so that the files are technically there, but the output of either of the above is looped with no way to use the input (i.e. pressing 1 or 2 doesn't do anything and it continues the loop).