Option Strict On Public Module CommandTest Public Sub Main() Dim arguments As String = Command If arguments = String.Empty Then Console.WriteLine("An empty string.") Else ' handle command line argument(s) Console.WriteLine("Command line: {0}", arguments) End If End Sub End Module
An empty string.
7.2.Command Line | ||||
7.2.1. | Get the command line arguments using the Sub Main array | |||
7.2.2. | Determine whether command line arguments are present |