' Name: GetExtension (By: ANmarAmdeen on 5/12/2018 7:54:00 PM) ' Language: Classic ASP | Category: File System ' Tags: ' Parameters: FileName ' ' Link: http://MyDev.net/?DevID=082MSO0UKN ' ' Description: Gets the extension of file from its filename ' Function GetExtension(Filename) GetExtension = "" DotLoc = InStrRev(Filename, ".") If DotLoc > 0 Then GetExtension = Right(Filename, Len(Filename) - DotLoc) End Function

GetExtension

Gets the extension of file from its filename

Function GetExtension(Filename)
GetExtension             = ""
DotLoc                   = InStrRev(Filename, ".")
If DotLoc > 0 Then GetExtension = Right(Filename, Len(Filename) - DotLoc)
End Function

ANmarAmdeen
45
Parameters
FileName
File System Classic ASP