Link to home
Start Free TrialLog in
Avatar of Bharat Guru
Bharat Guru

asked on

How to create a Dos batch file parameter

How to create a doc batch file with parameter.
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

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
You need a bit of a program to accept the input for the batch file to process. Here is an example from a Microsoft  Support article.

https://support.microsoft.com/en-us/kb/77457

I have used something similar many years ago.
John... if that is what he means I think you'll find that won't work on a modern OS being a COM file, certainly not 64 bit ones.

Can use

set /p input=Enter something:
echo %input%

or slightly more complicated ways such as making a GUI inputbox with VBScript or external util, e.g
http://scripts.dragon-it.co.uk/links/batch-gui-inputbox
http://scripts.dragon-it.co.uk/links/batch-gui-yesno-messagebox

But as to what is actually wanted we will have to see what Bharat Guru comes back with I guess.

Steve
Avatar of Bharat Guru
Bharat Guru

ASKER

thx