RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
AnsiStrings.ExtractShortPathName Function

Convert filename to short form.

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

ExtractShortPathName converts the given filename to the short form by calling the GetShortPathName Windows function. It returns an empty AnsiString if the file or directory specified does not exist. 

 

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