Partilhar via


Exec.ExecuteTool(String, String, String) Method

Definition

Executes cmd.exe and waits for it to complete

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 override int ExecuteTool(System::String ^ pathToTool, System::String ^ responseFileCommands, System::String ^ commandLineCommands);
protected override int ExecuteTool (string pathToTool, string responseFileCommands, string commandLineCommands);
override this.ExecuteTool : string * string * string -> int
Protected Overrides Function ExecuteTool (pathToTool As String, responseFileCommands As String, commandLineCommands As String) As Integer

Parameters

pathToTool
String

The path to the tool to execute.

responseFileCommands
String

Command line arguments that should go into a temporary response file.

commandLineCommands
String

Command line arguments that should be passed to the tool directly.

Returns

Upon completion of the process, returns True if successful, False if not.

Remarks

Overridden to clean up the batch file afterwards.

Applies to