ibec_ExtractFileName

Extracts the name and extension parts of a file name.

Syntax

 function ibec_ExtractFileName(const FileName: string): string;

Description

The resulting string is the leftmost characters of FileName, starting with the first character after the colon or backslash that separates the path information from the name and extension. The resulting string is equal to FileName if FileName contains no drive and directory parts.

Note: This function works for multi-byte character systems (MBCS).

Example

<< ibec_ExtractFileDir | IBEBlock | ibec_ForceDirectories >>