Suppose your app was invoked like this:
[tt]myapp.exe /c /N:foo /s[/tt]
Then if you do:
[tt]x = Command$[/tt]
So the value of x is "/c /N:foo /s"
So you could also use the Split() function to make this into an array, splitting on the empty spaces.
[tt]Dim x() As String
x = Split(Command$, " ")[/tt]
oh and if you want to test it in the development environment you can click the Project dropdown menu, pick your project's properties, and look on the "Make" tab for the textbox where you can put in command line arguments it will use when you run it in the IDE.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.