lua-users home
lua-l archive

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


Hello,

arg[0] returns the name of the current script and its
path.  If I call a script called hello.lua from c:\lua
arg[0] returns: c:\lua\hello.lua

How can I get just the current scriptname without the
path (hello.lua)?

Thanks,

Michael