FilePart(
     path:path,
     [int:components]
)
string

Arguments

path

File or folder path.

components

Optional. Number of components to return.

Return value

Filename component of specified path.

Description

Returns the filename (trailing) component or components of the specified path. If components isn't specified, the final component is returned.

Example:

Output(FilePart("C:\one\two\file.jpg"));
--> file.jpg

See also:
FileExt
Parent
Root
Stem