Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.04.11;
Скачать: CL | DM;

Вниз

Spisok Directroriy v TStringList e   Найти похожие ветки 

 
AndersoNRules ©   (2004-04-20 18:38) [0]

kak poluchiti spisok directoriy pervovo poryadka(toesti ne vlizati v poddirectorii)nahodyashyhsya v kakoy-to directoriy?
budu ocheni blagodaren!


 
SammIk ©   (2004-04-20 18:44) [1]

procedure serall(const p:string);
var
sr:TSearchRec;
s:string;
begin
   if findfirst(p+"*.*",faAnyFile,sr)=0 then
   try
       repeat
       s:=p+sr.FindData.cFileName ;
   tstring.....:=s;

       until(findnext(sr)<>0);
   finally
             findclose(sr);
   end;
end;


 
AndersoNRules ©   (2004-04-20 19:00) [2]

Ona vidaeot ne toliko directorii no i exe i zip rar lnk i txt
toesti shto-to ne to.
proboval vmesto faAnyFile staviti faDirectory, no k bolishemu uspehu ne privelo.shto delati?


 
SammIk ©   (2004-04-20 19:20) [3]

А что не так?
Показывае дириктории . и ..?
Если так то вставь после
repeat
      s:=p+sr.FindData.cFileName ;
     if sr.FindData.cFileName[1]="."then Continue;
  tstring.....:=s;



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

Текущий архив: 2004.04.11;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.05 c
3-1081508216
чайник1
2004-04-09 14:56
2004.04.11
SQL c датами


3-1079270629
IraiZor
2004-03-14 16:23
2004.04.11
Фильтры локальной БД


9-1070123297
AxxxE
2003-11-29 19:28
2004.04.11
Collision в 3D


1-1079930272
Driver
2004-03-22 07:37
2004.04.11
Как реализовать?


14-1079798543
Тимур
2004-03-20 19:02
2004.04.11
Half life боты