Function Reference
— Function File: [status, text] = dos (command)
— Function File: [status, text] = dos (command, "-echo")

Execute a system command if running under a Windows-like operating system, otherwise do nothing. Return the exit status of the program in status and any output sent to the standard output in text. If the optional second argument "-echo" is given, then also send the output from the command to the standard output.

See also: unix isunix ispc system