Home All Groups Group Topic Archive Search About
Author
28 Jul 2005 5:03 PM
Mitch
Hi,

How do I open an application and pass in command line paramters using VB6?

Thanks

Author
28 Jul 2005 5:10 PM
Bob Butler
"Mitch" <mi***@vhome.com> wrote in message
news:uM94wb5kFHA.3312@tk2msftngp13.phx.gbl
> Hi,
>
> How do I open an application and pass in command line paramters using
> VB6?


Msgbox Command$

--
Reply to the group so all can participate
VB.Net: "Fool me once..."
Author
28 Jul 2005 5:32 PM
Mitch
Thanks for the response however I must no have explained myself.  I want to
open an application inside my vb6 application and pass it parameters.

Thanks

Show quoteHide quote
"Bob Butler" <tiredofit@nospam.com> wrote in message
news:e$b5Md5kFHA.2444@tk2msftngp13.phx.gbl...
> "Mitch" <mi***@vhome.com> wrote in message
> news:uM94wb5kFHA.3312@tk2msftngp13.phx.gbl
>> Hi,
>>
>> How do I open an application and pass in command line paramters using
>> VB6?
>
>
> Msgbox Command$
>
> --
> Reply to the group so all can participate
> VB.Net: "Fool me once..."
>
Author
28 Jul 2005 5:52 PM
Bob Butler
"Mitch" <mi***@vhome.com> wrote in message
news:O0qU2r5kFHA.3164@TK2MSFTNGP15.phx.gbl
> Thanks for the response however I must no have explained myself.  I
> want to open an application inside my vb6 application and pass it
> parameters.

Shell "myapp.exe arg1 arg2 arg3...", vbNormalFocus

Or you can use the ShellExecute or CreateProcess API calls if you need more
control over the new process (e.g. wait for finish)

--
Reply to the group so all can participate
VB.Net: "Fool me once..."