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

x
  • 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
0
tentavarious
Asked:
tentavarious
1 Solution
 
Carl TawnSystems and Integration DeveloperCommented:
Try:

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

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