How do I run a .lua script? [closed]

梦想的初衷 提交于 2021-02-06 09:46:05

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!