-
Is it possible to create an exe in Visual Basic that allows you to pass parameters as well? If so, can somebody please give me some sample code for determining the values of these parameters from within the application?
For example, in the following statement:
Call SampleApp.exe Parm1, parm2
how can I determine the values of parm1 and parm2 from within SampleApp.exe?
-
Yep. The Command function returns any paramaters that were passed in the command line.
Code:
Private Sub Form_Load()
Dim strTemp As String
Dim strParams() As String
strTemp = Command
'split string up on commas.
strParams = Split(strTemp, ",")
End Sub