Link to home
Start Free TrialLog in
Avatar of hirschhouse
hirschhouse

asked on

Setting Parameters

Hello all, This should be an easy one!

I want to set parameter for an EXE. The DOS command line would look like this:

a:\Testexe -Sdx a:\dump.txt c:\1.txt c:\2.txt

How do i get the parameters 'c:\1.txt' & 'c:\2.txt' to come from 2 text boxes on the form. I want the user to be able to type in a path in txtbox1 and txtbox2 and that path be placed in the parameters for Testexe.

Heres the code i currently have:

wd = Shell("a:\testexe -Sdx a:\d.txt c:\1\1.txt c:\2\1.txt", vbNormalFocus)

Can you help?
ASKER CERTIFIED SOLUTION
Avatar of wsh2
wsh2

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