Вниз
Скачать: 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 вся ветка

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



Память: 0.45 MB
Время: 0.044 c
1-1082463556
Goida
2004-04-20 16:19
2004.04.11
Чистка Excel...


7-1075484867
$tranger
2004-01-30 20:47
2004.04.11
Версия DirectX


6-1075625924
hirlik
2004-02-01 11:58
2004.04.11
мониторинг порта


14-1081927508
Kerk
2004-04-14 11:25
2004.04.11
Конституция


1-1082614293
Draught
2004-04-22 10:11
2004.04.11
Реакция TEdit на нажание клавиш




   Наверх