How to read parameters for CONSOLE Applications

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
1 post Page 1 of 1
Contributors
User avatar
froza
Just Registered
Just Registered
Posts: 7
Joined: Thu Feb 24, 2011 4:56 pm

Start console application, replace sub main with this :
Code: Select all
Sub Main(ByVal args As String())
        For Each arg As String In args
            'arg = command line, get it?
            Console.WriteLine(arg)
        Next
    End Sub
Image
1 post Page 1 of 1
Return to “Tutorials”