Re: Get Scriptname Without the Path
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Get Scriptname Without the Path
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 1 Apr 2008 16:56:12 -0300
> 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]],".+\\","")