Function; execute
Cloaked edited this page Jun 10, 2020
·
1 revision
execute(<sCommand>)
(from LUA 4 Manual: 6.5 System Facilities)
"This function is equivalent to the C function system. It passes command to be executed by an operating system shell. It returns a status code, which is system-dependent."
execute("dir > dir.text")
This example will output the directory contents (from the DOS command "dir") to the file dir.text, which will be in the same folder as the homeworld2.exe (bin\release).
<sCommand>: a string containing the command to execute.
LUA 4 Manual: 6.5 System Facilities
Updated Formatting? Initial
Updated for HWRM? Initial
| Home | Search | Recent Changes | Revision History | About | User Help | Contributor Help | Discussion |