|
-
Apr 25th, 2001, 02:46 PM
#1
Thread Starter
Junior Member
command line arguments
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?
-
Apr 25th, 2001, 02:52 PM
#2
New Member
Code:
Sub Main()
Dim strCommands As String
strCommands = Command$
End Sub
-
Apr 25th, 2001, 02:52 PM
#3
Command returns arguements
-
Apr 25th, 2001, 02:53 PM
#4
To send a Command Line argument
Code:
Shell "MyApp argumant", 1
To accept command line arguments:
Code:
Private Sub Form_Load
' They are stored in the Command variable.
MsgBox Command
End Sub
-
Apr 25th, 2001, 03:09 PM
#5
Thread Starter
Junior Member
seperating the arguments
command brings them in as a group, anyway to grab multiple arguments separately.
Thanks for the quick three responses, earlier.
-
Apr 25th, 2001, 03:15 PM
#6
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|