My question is this: I'm trying to learn how to program in Lua to make Addons for World of Warcraft. I bought "Programming at Lua-Roberto Ierusalimschy 3rd Edition" to teach myself the language. After downloading “Lua for windows” to run the examples in the book, I can’t understand how to call files from the command line (I can write a program in SciTE and run it, and it will work in the bottom window of this program, but this is not what I'm trying to do)
For example, if I have a .lua file stored in a folder somewhere with a name hello.lua, the book says that I can simply type % lua hello.luato run the file, but I get the following error.
stdin: 1: unexpected character around '%'
I assume that this is because I did not say which folder to look for this file, but I cannot figure out how to say which file to look for it in. Any suggestions?
Is there a default folder somewhere that it did not tell me that I should save all my programs?
source
share