[RESOLVED] command line argument
I have specified command line argument in project properties this argument is mandatory to specify for my app license manager and this app is developed for SAP which also need to specify connection string in command line argument although I have tried to hardcode the connection string but my app stop working.
Can I change command line in code? Any help please?
Re: command line argument
Re: command line argument
thanks for rpl jeroen79
i know how to access "Command" i want to know how can i specify 2 command line argument .... or is there any other way for my problem?
Re: command line argument
Make sure that there is something that separates the arguments (like a space or a slash) and then split the command string on this separator.
Re: command line argument
you can get the value of command at any time, if you have more than one argument in command you will have to split it or otherwise process the string
example
VB Code:
Text1 = Split(Command, " ")(2)
will put the third argument into the text box
Re: command line argument
My suggestion is to use / or |. Because some times we might have space in our commandline.
For example, if you are passing a file path with other arguments, like
YourApp.exe "C:\Program Files\Test.exe" BlankMain
In this case you might face problem if you use space as a delimiter.
Re: command line argument
thanks for rpl
problem solved