lua-users home
lua-l archive

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


Bonus:

REGEDIT4

[HKEY_CLASSES_ROOT\.lua]
@="luafile"

[HKEY_CLASSES_ROOT\luafile]
@="Lua Script"
"AlwaysShowExt"=""

[HKEY_CLASSES_ROOT\luafile\DefaultIcon]
@="C:\\PrgCmdLine\\Lua.exe,-1"

[HKEY_CLASSES_ROOT\luafile\shell\open\command]
@="\"C:\\PrgCmdLine\\Lua.exe\" \"%1\" %*"


--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr

In File associations, I/O redirection will may or
may not work correctly!

It was fixed for Win2000, but apparently not enabled, see
http://support.microsoft.com/kb/321788/
STDIN/STDOUT Redirection May Not Work If Started from a File Association

I just tried it and it works nice. Also did a file association for C
files that are being
run with Tinycc. I have also added .LUA and .C to the PATHEXT
environment variable
so I don't have to type the extensions.

Henk Schaer