Feedback

  • Contents
 

Execute Shell Command

This System tool executes any applications (.exe, .bat, .com) or files where an application is associated with an extension (.doc, .xls, .txt).

Caution: This tool does not differentiate between normal applications and applications that could be harmful to your system. For example, a user could use this tool to execute a format.com c: command to delete the contents of a hard drive. Be very careful with this tool.

Inputs

Directory Path

The path in which you want to run the application, or the path to the executable.

File Name

The name of the file to execute, including the extension.

Command Line Parameters

Any command line parameters the application should use when it executes.

Seconds to Wait

The timeout to use when running a command synchronously. See the Run Synchronously option.

Hide the command window

Check this box if you do not want a command window to appear when this step executes.

Run Synchronously

Check this box to run the command synchronously.

Note: Use this option sparingly because it will cause the invoking handler to wait until either the command completes or the timeout value is reached, which can consume a thread.

Outputs

Return Code

The number representing the results of the operation when run synchronously.

Exit Paths

Success

The file was found and the command to execute was given.

Failure

The file could not be found.

Wait Failure

If run synchronously and the specified timeout was reached.