lua-users home
lua-l archive

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


Number of extra lines can be reduced to only four  :-)

::lua:: --[[
@setlocal & set luafile=%0 & if exist %0.bat set luafile=%0.bat
@lua52.exe %luafile% %*
@exit /b %errorlevel% ]]
--assert(false)
print 'This is Lua script'
os.exit(2)