Process4::CommandLine Property

 

Gets the command line that started the program being debugged in Visual Studio. This is a read-only property.

Namespace:   EnvDTE90a
Assembly:  EnvDTE90a (in EnvDTE90a.dll)

property String^ CommandLine {
	String^ get();
}

Property Value

Type: System::String^

A string that contains the command line.

The .exe portion of the command line is enclosed in quotation marks. For example, if you start notepad.exe from the command line c:\windows\system32\notepad.exe, this property gets the string "c:\windows\system32\notepad.exe". Command-line arguments appear outside the quotation marks. For example, "c:\myapp\myapp.exe" myfile.txt.

Return to top
Show: