Functions Language

FileName

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

Related functions: FileList, FilePath


Syntax:

FileName(FilePath)
  • In the Quintessence Editor (Studio) using Python language, use: Qx.FileName()
 See parameter descriptions

FilePathThe full directory path and file name.

Examples:

The examples provided below are based on fictitious data for illustrative purposes only.

> Example 1: Retrieve the file name from a file path


Range:

C:\File1.txt
C:\NewFiles\File2.txt

Formula:

return := Filename(Range);

Result:

File1.txt
File2.txt