Function Reference


Retrieves the name of the specified file

#include <WinAPIFiles.au3>
_WinAPI_GetFileTitle ( $sFilePath )


$sFilePath The name and location of a file.

Return Value

Success: The name of the file.
Failure: Empty string.


_WinAPI_GetFileTitle() should only be called with legal file names; using an illegal file name has an undefined result.

_WinAPI_GetFileTitle() returns the string that the system would use to display the file name to the user.
The display name includes an extension only if that is the user's preference for displaying file names.
This means that the returned string may not accurately identify the file if it is used in calls to file system functions.

See Also

Search GetFileTitle in MSDN Library.