ExtractFileName

<< Click to Display Table of Contents >>

Navigation:  Handling Events via Scripting > Objects and Functions > File management functions >

ExtractFileName

function ExtractFileName(FileName: string): string;

 

This function extracts the file name part, including the extension, from a string containing a fully qualified file name and path. It does not modify the file on disk.

 

Parameters

FileName

The fully qualified file name and path. Ex: 'C:\Documents\MyDoc.txt'

 

Return value

String

The extracted file name. Ex: 'MyDoc.txt'