Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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)

like image 507
matheusesp Avatar asked May 22 '13 13:05

matheusesp


People also ask

How do I exit a Lua script?

To exit the interactive mode and the interpreter, just type end-of-file ( ctrl-D in Unix, ctrl-Z in DOS/Windows), or call the exit function, from the Operating System library (you have to type os. exit()<enter> ).


1 Answers

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.

like image 143
HennyH Avatar answered Oct 13 '22 17:10

HennyH