473,382 Members | 1,639 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Easy question for all expert

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"
Nov 21 '05 #1
13 1455
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" <gh****************************@hotmail.com> wrote in
message news:ej**************@TK2MSFTNGP12.phx.gbl...
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"

Nov 21 '05 #2
* "Ghislain Tanguay" <gh****************************@hotmail.com> scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3
Shane,

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

Cor
Nov 21 '05 #4
hehe...
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
Shane,

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

Cor

Nov 21 '05 #5
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" <no**********@planet.nl> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
Shane,

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

Cor

---
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
Nov 21 '05 #6
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" <no**********@planet.nl> wrote in message
news:OH**************@TK2MSFTNGP09.phx.gbl...
Shane,

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

Cor

---
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
Nov 21 '05 #7
wow, that's an even better way.... like the old C programs.

Didn't know I could do that.

Shane

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OI*************@TK2MSFTNGP12.phx.gbl...
* "Ghislain Tanguay" <gh****************************@hotmail.com>

scripsit:
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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

---
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
Nov 21 '05 #8
Easy question for the "All Expert"

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

Cor

Nov 21 '05 #9
Shane,

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

Do not take it serious please?

Cor
Nov 21 '05 #10
* "Cor Ligthert" <no**********@planet.nl> scripsit:
Did you not see that this question is only for Herfried.


?!?

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #11
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" <no**********@planet.nl> wrote in message
news:eb**************@TK2MSFTNGP15.phx.gbl...
Easy question for the "All Expert"

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

Cor

---
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
Nov 21 '05 #12
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
Nov 21 '05 #13
No problem.
I guess it is the language barrier maybe.

Shane

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:Oo**************@TK2MSFTNGP10.phx.gbl...
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

---
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
Nov 21 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Dave Smithz | last post by:
Hi, Summary: Best way to divide out the HTML and PHP in some code I inherited. How can I keep the HTML files separate? Full Details: I've now been working two weeks on PHP / MySQL code I...
15
by: Don Vaillancourt | last post by:
I do a lot of hiring for my company and a lot of the people I interview say that they are experts at SQL queries, but when I give them something simple just beyond the typical SELECT type of...
11
by: Migrators | last post by:
Where can i find the .pdf version of the book "Expert C Programming" by Peter Vander Tiden/Liden. Please Specify the link.
1
by: NevilleDNZ | last post by:
Hi, Apologies first as I am not a unicode expert.... indeed I the details probably totally elude me. Not withstanding: how can I convert a binary string containing UTF-8 binary into a python...
5
by: DbZ | last post by:
Hi - i'm new to the regex thing - and trying to learn it to myself - Can someone please explain to me what the following line does - value.replace(/\s+$/g,"") I can kinda figure out its...
4
by: Rick Stevens | last post by:
I am not an access expert, could anyone tell me if the following would be easy to do?? I receive emails from a specific email address, that advise me if a specific piece of equipment my company...
11
by: Neo Morpheous | last post by:
Ok, first lets start with some definitions: By "Expert", I mean someone who : 1). Is familiar with and understands the *MAJOR* concepts/philosopies underlying C# (and possible .Net as a whole...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.