Re: Starting a console application from parameters
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Fri, 24 Mar 2006 15:24:31 +0100
"Fabri" <no@xxxxx> schrieb:
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 Module Program
Public Function Main(ByVal Args() As String) As Integer
For Each Arg As String In Args
MsgBox(Arg)
Next Arg
Application.Run(New MainForm())
If...Then
Return 0
Else
Return 1
...
End If
End Function
End Module
///
Select 'Sub Main' as startup object in the project properties.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
.
- References:
- Starting a console application from parameters
- From: Fabri
- Starting a console application from parameters
- Prev by Date: Re: How to link a dll and exe
- Next by Date: Re: .net input box
- Previous by thread: Re: Starting a console application from parameters
- Next by thread: How to link a dll and exe
- Index(es):
Relevant Pages
|
Loading