Does anyone know how to pass a command line arguments into a vb program?
the equivelent in vb script is wscript.arguments(0), but how do I do this with vb?
Printable View
Does anyone know how to pass a command line arguments into a vb program?
the equivelent in vb script is wscript.arguments(0), but how do I do this with vb?
Code:Sub Main()
Dim strCommands As String
strCommands = Command$
End Sub
Command returns arguements
To send a Command Line argument
To accept command line arguments:Code:Shell "MyApp argumant", 1
Code:Private Sub Form_Load
' They are stored in the Command variable.
MsgBox Command
End Sub
command brings them in as a group, anyway to grab multiple arguments separately.
Thanks for the quick three responses, earlier.
you would have to split it up with instr and mid functions. im about to leave so dont have time to write up an example, but myabe someone else can get you a good example.