This function is used to start a new program.
| C# | Visual Basic | Visual C++ |
[ObsoleteAttribute("Use the System.Diagnostics.Process.Start method instead.")] public static int Start( string command )
<ObsoleteAttribute("Use the System.Diagnostics.Process.Start method instead.")> _ Public Shared Function Start ( _ command As String _ ) As Integer
[ObsoleteAttribute(L"Use the System.Diagnostics.Process.Start method instead.")] public: static int Start( String^ command )
- command (String)
- Command with arguments.
The function returns 0 if successful, or an errorcode otherwise.
It creates a new process and its primary thread.
The new process executes the specified executable file with the submitted arguments.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when command is null. |
| CommandFailedException | Thrown when the operation cannot be processed. |
