Functions Language

FileName

The FileName() function returns the file name portion of a directory path.

Related functions: FileList, FilePath

Syntax


FileName (FilePath)

FilePath The full directory path and name of the file

Examples


Function Output
FilePath(“C:WorkDraftsLetter.txt”) Letter.txt
FilePath(“\MyServerShareMediaBrochure.pdf”) Brochure.pdf
FilePath(“Quotation.docx”) Quotation.doxc
FilePath(“Invoice”) Invoice