sys.cmd(command, [hidden], [standalone])

Executes an operating-system command.

Parameters

command

A string that contains the command to send to the command interpreter.

[hidden]

An optional boolean value indicating if the command must be executed in a hidden window (the default).

[standalone]

An optional boolean value indicating whether the child process should be independent from the current process. In this case, when the current process is stopped, the child process will be able to continue its execution. Default value is false.

Return value

This function returns true if the command was sucessfully executed or false otherwise.

Example

-- open an explorer window from the current directory sys.cmd('start .')