SysUtils.ExtractShortPathName

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From SysUtils.pas

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


Unit: SysUtils

Type: function

Visibility: public

C++ Information

From SysUtils.hpp

	System::UnicodeString __fastcall ExtractShortPathName(System::UnicodeString FileName);


Unit: SysUtils

Type: function

Description

Converts a file name to the short 8.3 form.


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 converts the full path name:

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

to the short form:

C:\Progra~1\MyComp~1\MyApp\MyApp.exe

Note:  ExtractShortPathName is only available on Windows.

See Also

Personal tools
Translations
Newest Version