lua-users home
lua-l archive

Get Scriptname Without the Path

[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

AltStyle によって変換されたページ (->オリジナル) /