• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

simple bat file help

absolu7

Senior member
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.

 
@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.
 
Back
Top