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)
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> ).
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With