quote:
Originally posted by RileyM
So if i try and use commands in the VB app still running in VB, i need to set the parameters in the project properties.
Yes
quote:
Originally posted by RileyM
Are parameters seperated by ";"?
No. There aren't multiple parameters; It is one string and thus completely up to you what you wanna do with it. The parameter function
Command$ simply returns everything which is typed on the command prompt in one complete string. You need to do your own parsing and/or splitting if you are planning to use more parameters.
When you set
blahblah as parameter, Command$ will return the string "blahblah"
When you set
/one /two as parameter, Command$ will return the string "/one /two"
When you set
/one;two /nine as parameter, Command$ will return the string "/one;two /nine"
etc...
quote:
Originally posted by RileyM
And if running the app as a stand-alone (not throught VB, will i still need to put the commands on the project properties.
No. You couldn't anyway since the VB IDE isn't used in that case...
Entering the parameters in you project properties is simply a way to simulate what you otherwise would type on the command prompt when you've compiled your program. It isn't saved inside your compiled program, the option is simply there to simulate the command line.
quote:
Originally posted by RileyM
Finaly just to make sure...So basically i would just need to copy the example code Dempsey gave (obviously modifying it for my needs).
To know how it works, yes. Simply make a new project and add that line to the forms load event, set some text in the parameter textbox of that project and run it...
----
Note all this can be found in your VB help files