DisplayName(
     path:path,
     [string:flags]
)
string

Arguments

path

Path to query the display name of.

flags

Optional. The optional flags are:

fReturn file part (final component)
pReturn parsing path
rResolve to true location (e.g. library files)

Return value

Display name of the file or folder.

Description

Returns the display name of the file or folder.

Example:

Output(DisplayName("/desktop"));
--> Desktop

Output(DisplayName("/desktop", "p"));
--> C:\Users\jon\Desktop

See also: Resolve