RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.ExpandFileName Function

Expand filename to fully qualified filename.

Pascal
function ExpandFileName(const FileName: AnsiString): AnsiString; overload;
C++
AnsiString ExpandFileName(const AnsiString FileName);

ExpandFileName expands the given filename to a fully qualified filename. The resulting AnsiString consists of a drive letter, a colon, a root relative directory path, and a filename including the extension, if any. Embedded '.' and '..' directory references are removed. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!