ExtractFileExt

Top  Previous  Next

function ExtractFileExt(sFileName As String) As String

 

Returns the extracted file extension (with leading ".") of the specified in sFileName.

 

Parameters

 

sFileName ... String expression. Filename with or without drive/folder.

 

Example:

Dim s

 

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

' returns s = ".text"




Translate document: