ExtractFileExt

<< Click to Display Table of Contents >>

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

ExtractFileExt

function ExtractFileExt(FileName: string): string;

 

This function extracts the extension part, including the leading dot, from a string containing a file name. It does not modify the file on disk.

 

Parameters

FileName

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

 

Return value

String

The extracted file extension. Ex: '.txt'