Easy question for all expert

  • Thread starter Thread starter Ghislain Tanguay
  • Start date Start date
G

Ghislain Tanguay

I have a compiled vb.net app and I want to give the user a choice to launch
it from the start line command and pass it a parameter or not. How can I do
that in my code? Is it possible?

Ex. : MyApp.exe "Go"
 
checkout system.environment.commandline I think.

I am not in the IDE at present.

Then just look through the commandline args in that array or collection and
act accordingly.

HTH,

Shane
 
* "Ghislain Tanguay said:
I have a compiled vb.net app and I want to give the user a choice to launch
it from the start line command and pass it a parameter or not. How can I do
that in my code? Is it possible?

\\\
Public Module Program
Public Sub Main(ByVal Args() As String)
...
End Sub
End Module
///

Select 'Sub Main' as startup object in the project properties.
 
Shane,

Did you not see that this question is only for Herfried.

Cor
 
No and I still don't, looking in my Outlook express.

His message said nothing about Herfried that I could see..

Sorry..

Shane
 
All I see is:

I have a compiled vb.net app and I want to give the user a choice to launch
it from the start line command and pass it a parameter or not. How can I do
that in my code? Is it possible?

Ex. : MyApp.exe "Go"

Where does it say FOR HERFRIED?
 
wow, that's an even better way.... like the old C programs.

Didn't know I could do that.

Shane
 
Easy question for the "All Expert"

And than I can only think on Herfried, I saw CJ did the same.

Cor
 
Shane,

Mostly the questions are not for such a selective public, everybody may
answer of course.

Do not take it serious please?

Cor
 
Well, since it is bad english either way it is hard for someone to tell.

it says Easy question for all expert

could be interpreted as a foreigner trying to say All Experts

correct english would have been, "An easy question for the Great Expert"
or "Mr. Know-It-All" or something of that fashion.

as it didn't have "the" in front of the word "all" it was bad english to
start with.
Sorry for trying to help.
 
Shane,

I hope you saw my extra message, there is nothing serious in my message, you
had given an answer and Herfried had.

I only become triggered when somebody ask for an expert.

This newsgroup is in my opinion for everybody and everybody is allowed to
answer questions or to set them

:-)

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top