Вниз
Скачать: CL | DM;

Функция преобразования имени файла...   Найти похожие ветки 

 
BillyJeans   (2004-07-12 17:16) [0]

Существует ли функция преобразующая длинные имена файлов и каталогов в короткие (8.3)?


 
Anatoly Podgoretsky ©   (2004-07-12 17:22) [1]

Да


 
rOOse ©   (2004-07-12 17:22) [2]

WinApi
GetShortPathName


 
DVM ©   (2004-07-12 19:48) [3]

function LongPathToShortPath(const Path: string): string;
var
 Required: Integer;
begin
 Result := Path;
 Required := GetShortPathName(PChar(Path), nil, 0);
 if Required <> 0 then
 begin
   SetLength(Result, Required);
   Required := GetShortPathName(PChar(Path), PChar(Result), Required);
   if (Required <> 0) and (Required = Length(Result) - 1) then
     SetLength(Result, Required)
   else
     Result := Path;
 end;
end;



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.022 c
14-1091792900
Sergey Kaminski
2004-08-06 15:48
2004.08.22
Erdelezi


4-1089313297
Sting
2004-07-08 23:01
2004.08.22
Сохранение и загрузка ключей реестра


3-1091415001
r00t
2004-08-02 06:50
2004.08.22
Data Type в XML Table


9-1083936428
WHS
2004-05-07 17:27
2004.08.22
DelphiX or Opengl


1-1092037671
Salik
2004-08-09 11:47
2004.08.22
Выделение строки в ListBox




   Наверх