Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Input parameter for batch file  (Read 2487 times)

0 Members and 1 Guest are viewing this topic.

JAVED

  • Guest
Input parameter for batch file
« on: March 23, 2006, 05:35:46 PM »
Dear Friends,
I am a new user of your forum can anybody help me
"How do i set input parameter for .exe file from command line of batch file"


Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: Input parameter for batch file
« Reply #1 on: March 24, 2006, 06:15:08 AM »
Quote
How do i set input parameter for .exe file from command line of batch file

Probably too early in the morning, but not sure want you want to do. You can pass parameters to the program on the command line:

x.exe parm1 parm2 parm3

Obviously the parameters must be in a format the program understands.

You can also get parameters from the user at run time:

Code: [Select]
set /p parm=Enter Program Parameter:
x.exe %parm%

Note: set /p is not valid on all machines.

Hope this helps.  8-)
« Last Edit: March 24, 2006, 06:16:23 AM by Sidewinder »
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein