parameter to the file .exe

  • Thread starter Thread starter Franky
  • Start date Start date
F

Franky

the file .exe in the vbnet can received a parameter
how can i received this parameter by code ??
 
Hi,

You can do this with the following lines :

Public Sub MainForm(ByVal args() As String)

If args.Length = 0 Then

MessageBox.Show("Nothing")

Else

MessageBox.Show(args(0))

End If

Args is a string array with the parameters.

BR

Fabien Decret
ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/

Franky a écrit :
 
Back
Top