@ Echo off
Echo.
Echo. **************************************** ********************
Echo.
Echo. Welcome to use this batch. Please select the program to open
Echo.
Echo. A: program a B: Program B C: program c
Echo.
Echo. **************************************** ********************
Echo.
: 1
: Set/P name = enter the program to open:
Choice/c abc/M "Please select :"
If errorlevel 1 goto 11 else
If errorlevel 2 goto 12 else
If errorlevel 3 goto 13 else
GOTO 1
: 11
If exist c: \ debug1 \ writericcheck.exe (Start c: \ debug1 \ writericcheck.exe & Exit) else ECHO file a does not exist & GOTO 1
: 12
If exist c: \ debug2 \ writericcheck.exe (Start c: \ debug2 \ writericcheck.exe & Exit) else ECHO file B does not exist & GOTO 1
: 13
If exist c: \ debug3 \ writericcheck.exe (Start c: \ debug3 \ writericcheck.exe & Exit) The else ECHO file C does not exist & GOTO 1