A string holding the command line for this process.
[Visual Basic] Public Shared ReadOnly Property CommandLine As String [C#] public static string CommandLine {get;} [C++] public: __property static String* get_CommandLine(); [JScript] public static function get CommandLine() : String;
The Unicode string holding the command line string.
On Windows NT/2000, the name of the executable file does not include the path.
On Windows 95/98, the name of the executable file includes the path. Also, long file names (non-8dot3 names) may be shortened to their 8dot3 representation.
On Windows CE, a NotSupportedException is thrown because Windows CE does not support command-line arguments.
See the code sample given in the GetCommandLineArgs topic.