如何运行 .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 olua.exe file_name.lua
或者lua file_name.lua
如果你已经设置了环境变量.如果先前的不起作用,只需将 file_name.lua
拖放到 lua.exe
上即可.
C:path olua.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屋!
查看全文