Advertisement

10.25.2002 at 10:33AM PDT, ID: 20382358
[x]
Attachment Details

DOS batch file with user input variable

Asked by martinpyt in MS DOS

Tags: , , , ,

We are running ACCPAC on Windows workstations on a network. Multiple users, needing to work from any workstation. The program settings are in a directory. The command line that starts the program is something like:

m:\PLUS.EXE /v3 /db /SF:\users\mary\EZS /CF:\users\mary\mcc
 
We would like to replace the "mary" with a variable. We can do that with %1, however:
 
The command or a batch file is attached to an icon on the user's desktop. We would like to have a single icon that runs an identical command line, that asks the user to input their user name, the equivalent of the %1 or "mary".

Can one of you help write a batch that would pop a prompt on the screen "User name, please:" and once the user typed in "mary" it would run the next batch file with "mary" substituting the "%1" from the above example?

Thanks. Martin
Start Free Trial
[+][-]10.25.2002 at 11:13AM PDT, ID: 7370404

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.25.2002 at 11:16AM PDT, ID: 7370420

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.27.2002 at 05:31PM PST, ID: 7376654

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.27.2002 at 06:30PM PST, ID: 7376781

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS DOS
Tags: batch, input, file, dos, user
Sign Up Now!
Solution Provided By: rin1010
Participating Experts: 6
Solution Grade: A
 
 
[+][-]10.27.2002 at 09:47PM PST, ID: 7377245

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.31.2002 at 04:29PM PST, ID: 7394661

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.05.2004 at 04:26PM PDT, ID: 11731731

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32