[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 141
  • Last Modified:

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
1 Solution
Carl TawnSystems and Integration DeveloperCommented:

    Dim args As String() = Environment.GetCommandLineArgs()

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now