Starting .exe with parameters

boes

Newcomer
Joined
Jun 21, 2002
Messages
17
Location
Belgium
I want to run an executable written in VB6 starting out of my .NET program. I want to pass on some parameters (string and integer variable) too. I have heard I can do this whit a command line... Can Someone provide my some samplecode about this which contains passing through the parameters in .Net and collecting it in VB6?

Thanks in advance
 
In .NET:

Visual Basic:
System.Diagnostics.Process.Start("myexe.exe", "test")

In VB6:

Visual Basic:
MsgBox Command$

Will reveal "test".
 
Back
Top