Skip to main content

Run DOS Command

Command description​

Run a DOS command and get execution results, error messages, and exit codes.

Command Input Parameters​

input parametersInput parameter typeDescription
DOS CommandstrDOS commands to be executed
Working DirectorystrOptional, the working directory when the command is executed
Encoding FormatenumDecoding format of command output, such as Auto, utf-8, gbk

Command Output Parameters​

Output parametersOutput parameter typeDescription
Execution ResultstrStandard output content
Error MessagestrStandard error content
Exit CodeintCommand exit code

Generation Notes​

  • Return standard output, standard error, and the exit code. Do not interpolate untrusted input directly into commands.