-
Hi All,
I am using Visual Basic 6.0 (SP3). I have created two Standard EXE projects. I want one exe is called by another one. While calling i have to pass a value to the second exe which is being called. How can i pass the value from one exe to another exe? Thanks for any help.
Sujatha
-
If using standard exe's, you could pass the data in a command line.
Code:
Sub RunOtherApp()
Dim sSendSomeData As String
sSendSomeData = "Here it is"
Shell "SecondApp.exe " & sSendSomeData
End Sub
Then in the second app to get the data
Code:
Private Sub Form_Load()
Dim sGotSomeData As String
sGotSomeData = Command$
End Sub
-
Hi,
use command line parameters.
Call of other exe:
Code:
shell "myprog.exe parameters"
Get parameters in called EXE:
Code:
strParameterString = Command$
Roger
-
Or you could always write to a file with one program and have the other read the information.
-
OR use the Registry
Or send messages
Or use DDE