Looking for an Example: reading one string value from the runtime command line

  • Thread starter Thread starter iano
  • Start date Start date
I

iano

Reading the commandline in VB6 was simple.
Finding an example for VbNet has been challenging.

Would someone please post one?
Thanks,

IanO
 
Reading the commandline in VB6 was simple.
Finding an example for VbNet has been challenging.

\\\
Public Module Program
Public Sub Main(ByVal Args() As String)
For Each Arg As String In Args
Console.WriteLine(Arg)
Next Arg
End Sub
End Module
///

In the project properties, select 'Sub Main' as startup object.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top