quote:
Originally posted by CookieRevised
quote:
Originally posted by RileyM
quote:
Originally posted by Dempsey
2. Command line arguments can be access from within VB from the Command$ variable.
egcode:
Private Sub Form_Load()
If Len(Command) <> 0 Then MsgBox Command
End Sub
Sorry, i do not understand what you mean with regard to the command line arguments. Please can you explain?
Just try the example that Dempsey has shown and things will become clear. Or press F1 and search your VB helpfiles for the Command$ function. Or look it up in the MSDN library.
The function Command$ returns whatever you have typed as parameters at the command line. (Remember that when you try to use Command$ in the IDE of VB that you need to set the wanted parameters in Project > Properties > Make > Command Line Arguments).
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. Are parameters seperated by ";"? And if running the app as a stand-alone (not throught VB, will i still need to put the commands on the project properties.
Finaly just to make sure...So basically i would just need to copy the example code Dempsey gave (obviously modifying it for my needs).