[Shell] Command Line
This module is built to provide a quick method for executing a legacy command-line command such as: DIR, XCOPY, DEL, RMDIR, and so on. The following parameters are used:
| Parameter | I/O | Description |
|---|---|---|
| Command | In | The command to be executed. |
| IgnoreAllErrorCodes | In | True: Ignores the ExitCode and will never flag the job step as an error. False (default): If a non-zero ExitCode is returned, the job step will be flagged as an error, which can affect other job steps that come after it. Normally the returning ExitCode from a command will be zero if successful, and non-zero to signal an error. (It should never be negative.) |
| IgnoreErrorCodesAbove | In | Ignores all ExitCode values above a certain number. |
| IgnoreErrorCodesBelow | In | Ignores all ExitCode values below a certain number. In conjunction with the previous parameter, you can specify an acceptable range of errors. For example, if IgnoreErrorCodesAbove=5 and IgnoreErrorCodesBelow=10, then error codes 6, 7, 8, 9 are ignored. All other errors (0 through 5, and 10 and higher) will flag the job step as an error. You do not need to specify both, e.g., if you want to ignore error codes 1, 2, 3, you can set IgnoreErrorCodesBelow=4 and leave IgnoreErrorCodesAbove blank. |
| LogOutputLevel | In | Minimal: Normal output to the log. Verbose: More detailed output is written to the log, suitable for debugging purposes. |
| ExitCode | Out | The exit code returned by the command. |
| OutputText | Out | The complete output produced by the command. If you want to write this to a file, use the [Files] Write module. |