GetPathPart()

Syntax

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

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

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

Supported OS

All

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