Returning command line arguments when program is launched in vb.net??

Experts what is the vb.net equilavent to the vb6 code below?
Does vb.net have something similiar to the command function in vb6?
When my app gets started I want to pass a string to it, what is the simplest way to do i..
Private Sub Form_Load()
Dim S As String
S = Command

args = Split(S, ",")
End Sub
tentavariousAsked:
Who is Participating?
 
Carl TawnSystems and Integration DeveloperCommented:
Try:

    Dim args As String() = Environment.GetCommandLineArgs()
0
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.