Link to home
Start Free TrialLog in
Avatar of thaburner
thaburnerFlag for United States of America

asked on

make a user selection for batch file

I have the following batch file, how do i make it so a user can either push 1 or 2 to run an action. For example 1 to connect the drives and two to disconnect.

ECHO OFF
REM =======================================================
REM Company Name
REM =======================================================

REM ============Disconnect a network drive=================
net use n: /delete
net use o: /delete

REM ============Map a network drive========================
net use n: \\192.168.1.151\Users
net use o: \\192.168.1.151\Common

REM ============Open a website=============================
REM start http://www.website.com

ECHO ON
ASKER CERTIFIED SOLUTION
Avatar of SteveGTR
SteveGTR
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial