Connecting Tech Pros Worldwide Forums | Help | Site Map

Easy question for all expert

Ghislain Tanguay
Guest
 
Posts: n/a
#1: Nov 21 '05
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"



SStory
Guest
 
Posts: n/a
#2: Nov 21 '05

re: Easy question for all expert


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" <ghislaintanguay3DELETETHISPART@hotmail.com> wrote in
message news:ejKU$nDjEHA.3456@TK2MSFTNGP12.phx.gbl...[color=blue]
> I have a compiled vb.net app and I want to give the user a choice to[/color]
launch[color=blue]
> it from the start line command and pass it a parameter or not. How can I[/color]
do[color=blue]
> that in my code? Is it possible?
>
> Ex. : MyApp.exe "Go"
>
>[/color]


Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#3: Nov 21 '05

re: Easy question for all expert


* "Ghislain Tanguay" <ghislaintanguay3DELETETHISPART@hotmail.com> scripsit:[color=blue]
> 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?[/color]

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

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

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Cor Ligthert
Guest
 
Posts: n/a
#4: Nov 21 '05

re: Easy question for all expert


Shane,

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

Cor


CJ Taylor
Guest
 
Posts: n/a
#5: Nov 21 '05

re: Easy question for all expert


hehe...


"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:OHl$2gEjEHA.3632@TK2MSFTNGP09.phx.gbl...[color=blue]
> Shane,
>
> Did you not see that this question is only for Herfried.
>
> Cor
>
>[/color]


SStory
Guest
 
Posts: n/a
#6: Nov 21 '05

re: Easy question for all expert


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?

"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:OHl$2gEjEHA.3632@TK2MSFTNGP09.phx.gbl...[color=blue]
> Shane,
>
> Did you not see that this question is only for Herfried.
>
> Cor
>
>[/color]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004


SStory
Guest
 
Posts: n/a
#7: Nov 21 '05

re: Easy question for all expert


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

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

Sorry..

Shane
"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:OHl$2gEjEHA.3632@TK2MSFTNGP09.phx.gbl...[color=blue]
> Shane,
>
> Did you not see that this question is only for Herfried.
>
> Cor
>
>[/color]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004


SStory
Guest
 
Posts: n/a
#8: Nov 21 '05

re: Easy question for all expert


wow, that's an even better way.... like the old C programs.

Didn't know I could do that.

Shane

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:OIose1DjEHA.396@TK2MSFTNGP12.phx.gbl...[color=blue]
> * "Ghislain Tanguay" <ghislaintanguay3DELETETHISPART@hotmail.com>[/color]
scripsit:[color=blue][color=green]
> > I have a compiled vb.net app and I want to give the user a choice to[/color][/color]
launch[color=blue][color=green]
> > it from the start line command and pass it a parameter or not. How can[/color][/color]
I do[color=blue][color=green]
> > that in my code? Is it possible?[/color]
>
> \\\
> Public Module Program
> Public Sub Main(ByVal Args() As String)
> ...
> End Sub
> End Module
> ///
>
> Select 'Sub Main' as startup object in the project properties.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>[/color]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004


Cor Ligthert
Guest
 
Posts: n/a
#9: Nov 21 '05

re: Easy question for all expert


Easy question for the "All Expert"

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

Cor



Cor Ligthert
Guest
 
Posts: n/a
#10: Nov 21 '05

re: Easy question for all expert


Shane,

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

Do not take it serious please?

Cor


Herfried K. Wagner [MVP]
Guest
 
Posts: n/a
#11: Nov 21 '05

re: Easy question for all expert


* "Cor Ligthert" <notfirstname@planet.nl> scripsit:[color=blue]
> Did you not see that this question is only for Herfried.[/color]

?!?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
SStory
Guest
 
Posts: n/a
#12: Nov 21 '05

re: Easy question for all expert


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.

"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:ebdLYcFjEHA.2652@TK2MSFTNGP15.phx.gbl...[color=blue]
> Easy question for the "All Expert"
>
> And than I can only think on Herfried, I saw CJ did the same.
>
> Cor
>
>
>[/color]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.732 / Virus Database: 486 - Release Date: 7/29/2004


Cor Ligthert
Guest
 
Posts: n/a
#13: Nov 21 '05

re: Easy question for all expert


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


SStory
Guest
 
Posts: n/a
#14: Nov 21 '05

re: Easy question for all expert


No problem.
I guess it is the language barrier maybe.

Shane

"Cor Ligthert" <notfirstname@planet.nl> wrote in message
news:OouZSuFjEHA.3148@TK2MSFTNGP10.phx.gbl...[color=blue]
> Shane,
>
> I hope you saw my extra message, there is nothing serious in my message,[/color]
you[color=blue]
> 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
>
>[/color]


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.745 / Virus Database: 497 - Release Date: 8/27/2004


Closed Thread