How to get command line arguments in VB.NET

The key thing about command line arguments is to define the "Main" function correctly - that then allows access to the command line arguments via the array arg.

for example this method will output the entered arguments to the screen

Shared Sub Main(ByVal args As String())
    For Each arg As String In args
        Console.WriteLine(arg)
    Next arg 
End Sub