Returning command line arguments when program is launched in

Experts what is the equilavent to the vb6 code below?
Does 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
Who is Participating?
Carl TawnSystems and Integration DeveloperCommented:

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