simple bat file help

absolu7

Senior member
Jul 20, 2004
373
0
0
i need to make a regular bat file
it should ask user to input a number between 1 and 3.
depending on the number the location with the app is loaded.

 

absolu7

Senior member
Jul 20, 2004
373
0
0
@echo off
:start
cls
echo select 1
echo select 2
echo select 3

ECHO %ERRORLEVEL%
IF ERRORLEVEL 1 GOTO Label1
IF ERRORLEVEL 2 GOTO Label2
IF ERRORLEVEL 3 GOTO Label3

:Label1
\\a0chidc1\D\Setup.exe
GOTO End

:Label2
/program files
GOTO End

:Label3
/discover
GOTO End

:End


i got this but i dont know where to make it so the user inputs a certain value to set for errorlevel
please advise.