GetFilePart()

Syntax

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

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

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

Supported OS

All

<- GetExtensionPart() - Misc Index - GetPathPart() ->