GetFileName
Contents
Description
Get the file name (with or without the extension) from the full path.
Syntax
string GetFileName( string strFile$, bool bRemoveExt )$
Parameters
strFile
- file string.
bRemoveExt
- true to remove the extension. If bRemoveExt is not specified, then file extension is kept.
Return
Return the file name without extension if bRemoveExt = 1, else with file extension.
Example
strpath$="%Yorigin.ini"; fname$ = GetFileName(strpath$)$