cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Batch file help please

Highlighted
Topaz II

Batch file help please

@echo off

:start
echo ----------------------
echo AA - Client_A
echo BB - Client_B
echo CC - Client_C
echo DC - Other or none
echo ----------------------

set client=
set /p client=Please enter the code for the client that your working on.
if not '%client%'=='' set choice=%client:~0,1%

if '%client%'=='AA' goto Client_A
if '%client%'=='aa' goto Client_A
if '%client%'=='BB' goto Client_B
if '%client%'=='bb' goto Client_B
if '%client%'=='CC' goto Client_C
if '%client%'=='cc' goto Client_C
if '%client%'=='DC' goto call_proe
if '%client%'=='dc' goto call_proe

ECHO 
ECHO I'm sorry, I don't recognize "%client%".  Please try again.
goto start

:Client_A
set proe_launch_trail=C:\proe\launch_trails\start_Client_A.txt
goto call_proe

:Client_B
set proe_launch_trail=C:\proe\launch_trails\start_Client_B.txt
goto call_proe

:Client_C
set proe_launch_trail=C:\proe\launch_trails\start_Client_C.txt
goto call_proe

--
Doug Schaefer | Experienced Mechanical Design Engineer
LinkedIn
Announcements