Afficher : Delphi C++
Préférences d'affichage

System.SysUtils.ExtractShortPathName

De XE2 API Documentation

Delphi

function ExtractShortPathName(const FileName: string): string;

C++

extern PACKAGE System::UnicodeString __fastcall ExtractShortPathName(const System::UnicodeString FileName)/* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Convertit un nom de fichier au format court 8.3.

ExtractShortPathName convertit le nom du fichier FileName au format court 8.3. Si le fichier ou le répertoire n'existe pas, ExtractShortPathName renvoie une chaîne vide.

Le premier paramètre, FileName, peut être un nom de chemin d'accès complet. Par exemple, ExtractShortPathName convertit le nom complet :

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

au format court :

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

Remarque :  ExtractShortPathName est seulement disponible sous Windows.

Voir aussi

Versions précédentes
Traductions