GetFilePart()
语法
Filename$ = GetFilePart(FullPathName$ [, Mode])概要
Retrieves the file part of a full path.
参数
FullPathName$ The full path to get the filename from. Mode (optional) It can be one of the following values: #PB_FileSystem_NoExtension: Get the filename without its extension (if any).
返回值
Returns the file name. For example, if the full path is "C:\PureBasic\PB.exe", the result will be "PB.exe".
Remarks
To retrieve the extension or the path part from a full path, look at the GetExtensionPart() and GetPathPart() functions.
参阅
GetExtensionPart(), GetPathPart()
已支持操作系统
所有