FILENAME

The FILENAME function returns the file name or path portion of the input path.

Input/Output

Number of Connections: 1
InputData TypeDescription
Input1StringThe file path.

OutputData TypeDescription
Output1StringThe file name or path.
Output2StringThe file name string when specifying both the file name and path.

Property

NameProperty TypeDescription
Getchoice Defines which portion of the input path to return.
Name - Outputs the file name.
Directory - Outputs the directory path.
Both - Outputs both the file name and directory path.
In this case, there are two outputs. The directory name is output from Output1. The file name is output from Output2

Topic

Example

PropertyOutput
Input1c:\Data\index.xmlGetNameindex.xml

PropertyOutput
Input1c:\Data\index.xmlGetDirectoryc:\Data\

Property
Input1c:\Data\index.xmlGetBothOutput1c:\Data\
Output2index.xml