Command description
Run a DOS command and get execution results, error messages, and exit codes.
| input parameters | Input parameter type | Description |
|---|
| DOS Command | str | DOS commands to be executed |
| Working Directory | str | Optional, the working directory when the command is executed |
| Encoding Format | enum | Decoding format of command output, such as Auto, utf-8, gbk |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|
| Execution Result | str | Standard output content |
| Error Message | str | Standard error content |
| Exit Code | int | Command exit code |
Generation Notes
- Return standard output, standard error, and the exit code. Do not interpolate untrusted input directly into commands.