RAD Studio VCL Reference
SysUtils.ExtractShortPathName Function

Converts a file name to the short 8.3 form.

function ExtractShortPathName(const FileName: string): string; overload;
AnsiString ExtractShortPathName(const AnsiString FileName);

ExtractShortPathName converts the file name, FileName, to the short 8.3 form. ExtractShortPathName returns an empty string if the file or directory does not exist. 

The first parameter, FileName, can be a full path name. For example, ExtractShortPathName would convert the full path name: 

C:\Program Files\MyCompany\MyApp\MyApp.exe  

to the short form: 


Note: ExtractShortPathName is only available on Windows.


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