Re: Starting a console application from parameters




"Fabri" <no@xxxxx> wrote in message news:e00jqo$rfi$1@xxxxxxxxxxxxxx
I'm writing a Console Application and I would like to start it only if I
pass to it a param:

myapp.exe -s --> start
myapp.exe --> I write usage reference

Public Shared Function Main( ByVal args As String() ) As Integer
If args.Length = 0 Then
' Display Usage
Return 1
End If
' rest of code
End Function

HTH,
Phill W.


.