GetExtensionPart()

Syntax

Path$ = GetExtensionPart(FullPathName$)
Description
Retrieves the extension part of a full path. For example, if the full path is "C:\PureBasic\PB.exe", the result will be "exe".

To retrieve the file or the path part from a full path, look at the GetFilePart() and GetPathPart() functions.

More useful file-related functions can be found in the File and FileSystem libs.

Supported OS

All

<- GetCurrentDirectory() - FileSystem Index - GetFileAttributes() ->