Command Line Arguments passed to VB.NET exe

Does anyone know where to pull command line arguments passed to a exe. The documentation says these are accessbile via the StartArguments Property. But I can't figure out how to access this. Any clues?

Who is Participating?
bruintjeConnect With a Mentor Commented:
you could have a look at
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)))
Bob LearnedCommented:
You can use the Environment.GetCommandLineArgs method.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.