Link to home
Start Free TrialLog in
Avatar of imby
imby

asked on

Exe that accepts parameter

I need to have a program (exe) that accepts an input parameter.  It doesn't matter if it's integer, byte, or string.  Based upon the input, it will perform different tasks.  This exe will be called by a batch file.  I don't know how I could pass parameter from the batch file to the exe.
Thanks in advance for those who will have a suggestion.
ASKER CERTIFIED SOLUTION
Avatar of stef4s
stef4s

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
Avatar of Ryan Chong
Hi imby,

Try to include the CmdLine = Command() in Form_Load Event, from there you can do the process you want.

Here is an example:
Create Shortcuts for Files and Applications with Parameters:
http://www.freevbcode.com/ShowCode.Asp?ID=909

Hope this help
Avatar of imby
imby

ASKER

Thanks!