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() functions.

More useful file-related functions can be found in the File and FileSystem libs.

Supported OS

All

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