Вниз
Скачать: 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.034 c
3-1091441978
46_55_41_44
2004-08-02 14:19
2004.08.22
Как создать БД Акцез программно?????


6-1087790121
Сергей Г
2004-06-21 07:55
2004.08.22
E-Mail


3-1090833619
hursand
2004-07-26 13:20
2004.08.22
dbgrid


1-1091709008
banderas
2004-08-05 16:30
2004.08.22
Размер формы


4-1089286295
bar
2004-07-08 15:31
2004.08.22
В Cи можно а в Delphi?




   Наверх