FileBaseName
str FileBaseName (str)
; FileBaseName (strURL)  ==> "FILENAME.EXT"

strURL = "\\SERVER\SHARE\FOLDER\FILENAME.EXT"
strFileBaseName11 = StrCat (FileRoot (strURL), ".", FileExtension (strURL))
strFileBaseName12 = StrReplace (strURL, FilePath (strURL), "")
strFileBaseName13 = ItemExtract (-1, ItemExtract (-1, strURL, ":"), "\")
strFileBaseName14 = FileBaseName (strURL)

strURL = "D:\FOLDER\FILENAME.EXT"
strFileBaseName21 = StrCat (FileRoot (strURL), ".", FileExtension (strURL))
strFileBaseName22 = StrReplace (strURL, FilePath (strURL), "")
strFileBaseName23 = ItemExtract (-1, ItemExtract (-1, strURL, ":"), "\")
strFileBaseName24 = FileBaseName (strURL)

strURL = "D:FILENAME.EXT"
strFileBaseName31 = StrCat (FileRoot (strURL), ".", FileExtension (strURL))
strFileBaseName32 = StrReplace (strURL, FilePath (strURL), "")
strFileBaseName33 = ItemExtract (-1, ItemExtract (-1, strURL, ":"), "\")
strFileBaseName34 = FileBaseName (strURL)

Exit