lua-users home
lua-l archive

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


> arg[0] returns: c:\lua\hello.lua
> 
> How can I get just the current scriptname without the
> path (hello.lua)?

string.gsub([[c:\lua\hello.lua]],".+\\","")