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() commands.

A lot more useful file-related commands you will find in the File and FileSystem libs.

Supported OS

All

<- ElapsedMilliseconds() - Misc Index - GetFilePart() ->