lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi listers,

How to know the value of a environment variable in Windows?

For example, %programfiles% stores the path where programs are usually installed. If I used Pascal, I would do this:

program env;

uses

dos;

begin

writeln(get('programfiles'));

end.

How to do the same in Lua?

 

Luciano de Souza