Hinweis:Dieser Abschnitt ist nur in englischer Sprache verfügbar. Wir bitten um Ihr Verständnis.

3.5.7.14 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$)$