GetExtensionPart()

语法

Extension$ = GetExtensionPart(FullPathName$)
概要
Retrieves the file extension part of a full path.

参数

FullPathName$ The full path to get the extension from.

返回值

Returns the file extension. For example, if the full path is "C:\PureBasic\PB.exe", the result will be "exe".

Remarks

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

参阅

GetFilePart(), GetPathPart()

已支持操作系统

所有

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