PDA

Click to See Complete Forum and Search --> : Passing multiple arguments (3 actually) from vbscript to a VB6 form


foosball
Mar 27th, 2007, 11:25 AM
I need to call a basic vb6 .exe and pass it 3 arguments in order to process it inside the executable.

What would be the easiest way to do this?

The only thing my .exe contains is the InternetSetCookie function and I would like to provide it's arguments from a logon script I created in vbscript.

Can anyone help?

RhinoBull
Mar 28th, 2007, 07:53 AM
In VB6 there is a function Command() - it returns command line arguments.
So, if you shell your exe with some arguments you can then parse them in your executable.
Search forum for samples (there are many out there).