Command line arguments... again!
I have a program[A] that needs to open another program[B] with a desired filename...
I thought of running my program[B] with Process.Start("Myapp.exe",MyFilename)... which should be sent fine from program[A]...
But how do I receive the command line argument through program[B]?
I tried...:
VB Code:
Public Sub New(Optional ByVal arg As String = "%sysroot%")
MyBase.New()
'Cet appel est requis par le Concepteur Windows Form.
InitializeComponent()
'Ajoutez une initialisation quelconque après l'appel InitializeComponent()
Application.EnableVisualStyles()
Application.DoEvents()
cmd = arg
End Sub
but it doesn't quite seem to be working... :ehh:
Re: Command line arguments... again!
You can use either of these.
VB Code:
Environment.CommandLine()
Environment.GetCommandLineArgs()
Re: Command line arguments... again!