如何运行.lua脚本? [英] How do I run a .lua script?
本文介绍了如何运行.lua脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要使用Windows命令行(cmd)执行.lua脚本.我的.lua文件放在lua.exe所在的文件夹中.
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. =(
(我也具有扩展名为.out的相同脚本)
(I also have the same script with the extension .out)
推荐答案
C:\ path \ to \ lua.exe file_name.lua
或者 lua file_name.lua
(如果已设置环境变量).如果先验方法不起作用,只需将 file_name.lua
拖放到 lua.exe
上即可.
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
.
这篇关于如何运行.lua脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文