Difference between revisions of "$nopath"

From Scriptwiki
Jump to: navigation, search
(Added $nopath)
 
m (forgot category.)
 
Line 8: Line 8:
 
  $nopath(c:\mirc) returns mirc
 
  $nopath(c:\mirc) returns mirc
 
  $nopath(c:\mirc\) returns ''[[$null|null]]''.
 
  $nopath(c:\mirc\) returns ''[[$null|null]]''.
 +
 +
[[Category:File and Directory Identifiers]]

Latest revision as of 15:32, 4 April 2008

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.