小智 40
您可以使用Lua的本机"执行"命令.
例:
os.execute("c:\\temp\\program.exe")
Run Code Online (Sandbox Code Playgroud)
对于需要使用 io.popen 的人
local openPop = assert(io.popen('/bin/ls -la', 'r'))
local output = openPop:read('*all')
openPop:close()
print(output) -- > Prints the output of the command.
Run Code Online (Sandbox Code Playgroud)