GetPathPart()

语法

Path$ = GetPathPart(FullPathName$)
概要
Retrieves the path part of a full path.

参数

FullPathName$ The full path to get the path part from.

返回值

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

Remarks

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

参阅

GetExtensionPart(), GetFilePart()

已支持操作系统

所有

<- GetHomeDirectory() - FileSystem Index - GetTemporaryDirectory() ->