- Description (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.
- Related Pages