问题
I have an executable I want to run using Lua ... how do I do this?
Can't seem to find any documentation anywhere about this.
回答1:
You can use Lua's native 'execute' command.
Example:
os.execute("c:\\temp\\program.exe")
Sources: Lua Guide / os.execute
回答2:
If you need the output of the program, use io.popen
回答3:
Use os.execute.
来源:https://stackoverflow.com/questions/2829404/how-do-i-run-an-executable-using-lua