Solved

Command Line Arguments passed to VB.NET exe

Posted on 2003-10-27
3
1,901 Views
Last Modified: 2008-03-17
Does anyone know where to pull command line arguments passed to a vb.net exe. The documentation says these are accessbile via the StartArguments Property. But I can't figure out how to access this. Any clues?

0
Comment
Question by:boneal06
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 250 total points
ID: 9628430
you could have a look at

http://www.devx.com/dotnet/Article/10115
0
 
LVL 28

Expert Comment

by:iboutchkine
ID: 9628470
Imagine that you start the exe with params like that

abc.exe "param"


Dim args() As String
        Dim param() As String

        args = Split(CommandLine, """") 'split by quotation mark
now your param is in the last memeber of args array
        param = Trim(args(UBound(args)))
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 9628524
You can use the Environment.GetCommandLineArgs method.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
.NET Enums [Flags] & Bitwise Design Question 6 49
Adding where clause to entity statement c# 1 59
c#, case, if 4 35
How we can add Dten600.dll in GAC in c#. 18 51
Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question