ExtractFilePath

Top  Previous  Next

function ExtractFilePath(sFileName As String) As String

 

Returns the extracted file path of the file specified in sFileName.

 

ExtractFilePath returns an empty string if sFileName doesn't contain drive and directory parts.

 

Parameters

 

sFileName ... String expression.

 

Example:

Dim s

 

= ExtractFilePath("e:\exp\template.txt")

' returns s = "e:\exp"




Translate document: