Вниз
Скачать: 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.026 c
1-1091721922
mouse_web
2004-08-05 20:05
2004.08.22
Как узнать разрешение экрана


3-1090594934
Koala
2004-07-23 19:02
2004.08.22
Изменения в базе


14-1091513884
Narat
2004-08-03 10:18
2004.08.22
RX components for Delphi 8


1-1092057780
galexis
2004-08-09 17:23
2004.08.22
Перекодировка файла DOS в Win1251


6-1087307555
Sadya
2004-06-15 17:52
2004.08.22
Замена части текста при загрузке страниц в IE на другой




   Наверх