问题
I need to execute a .lua script using windows command line (cmd). I've got my .lua file in the same folder in which my lua.exe is.
I've tried several ways of running the file but I can't figure out how to do it. =(
(I also have the same script with the extension .out)
回答1:
C:\path\to\lua.exe file_name.lua
OR
lua file_name.lua
if you've set up envrioment variables. If the prior doesn't work, simply drag and drop the file_name.lua
onto the lua.exe
.
来源:https://stackoverflow.com/questions/16692580/how-do-i-run-a-lua-script