tc3596
Technical User
- Mar 16, 2001
- 283
From VBA I am trying to call a VB exe and pass it some parameters. However, it is not working. Nothing seems to be getting passed. Here is my call and VB code.
CALL
Shell "C:\prjIconAutoSync.exe dice"
VB CODE
Sub Main()
Dim aryargs
MsgBox Command
If Command <> "" Then
aryargs = Split(Command, ",")
mServer = aryargs(0)
End if
End Sub
A message box displays, but it's empty. I tried setting command line parameters in the Make tab of the exe for testing, but still nothing. I also tried calling this via the real command line, and still an empty message box. Seems like this should work, but I am obvisouly missing something. Any thoughts are appeciated.
CALL
Shell "C:\prjIconAutoSync.exe dice"
VB CODE
Sub Main()
Dim aryargs
MsgBox Command
If Command <> "" Then
aryargs = Split(Command, ",")
mServer = aryargs(0)
End if
End Sub
A message box displays, but it's empty. I tried setting command line parameters in the Make tab of the exe for testing, but still nothing. I also tried calling this via the real command line, and still an empty message box. Seems like this should work, but I am obvisouly missing something. Any thoughts are appeciated.