ExtractFilePath

<< Click to Display Table of Contents >>

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

ExtractFilePath

function ExtractFilePath(FileName: string): string;

 

This function extracts the file path part, including the trailing path delimiter (\), 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: 'C:\Documents\'