Debugging Command Line Arguments

Is there a means of testing command line arguments within the studio environment(VB specifically)?
perv90210Asked:
Who is Participating?
 
iboutchkineConnect With a Mentor Commented:
In VB.NET you can enter command line argument for debugging in the following place:
Right click Project properties - Configuration properties - Debugging - Command line argument

To check you argument

         Dim args() As String
        args = Split(CommandLine, """") 'split by quotation mark
'CommandLine gives you the path of the exe in quotes and then the param

'to extract the param
            MsgBox(args(UBound(args)))


don't forget to include Environment namespace

Imports System.Environment
0
 
naveenkohliCommented:
Check the project properties (Right click on project and bring it up)
C# projects have an option for setting command line arguments. I am assuming VB.Net should also have something similar.
0
All Courses

From novice to tech pro — start learning today.