Solved

Command Line Arguments passed to VB.NET exe

Posted on 2003-10-27
3
1,903 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 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