Mega Code Archive

 
Categories / VB.Net Tutorial / Development
 

Determine whether command line arguments are present

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.