GetPathPart()

Syntax

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

Parameters

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

Return value

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.

See Also

GetExtensionPart(), GetFilePart()

Supported OS

All

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