ExtractFileName
Sub ExtractFileName($fileName As String) As String
Returns the extracted file name from the absolute path and file name specified in $fileName.
The resulting string is identical to $fileName, if $fileName does not contain a drive or directory part.
Parameters
- $fileName ... String expression that specifies a file name, with or without drive or folder information.
Example:
Dim $s
$s = ExtractFileName("e:\exp\template.txt")
' returns $s = "template.text"