$nopath

From Scriptwiki
Revision as of 15:30, 4 April 2008 by Albie (talk | contribs) (Added $nopath)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Returns filename with the path stripped.

$nopath(<path>)

Examples

$nopath(c:\mirc\mirc.exe)  returns mirc.exe
$nopath(mirc.exe) returns mirc.exe
$nopath(\mirc\mirc.exe) returns mirc.exe
$nopath(c:\mirc) returns mirc
$nopath(c:\mirc\) returns null.