Вниз
Скачать: 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.035 c
1-1082482320
Polkan
2004-04-20 21:32
2004.04.11
StringGrid и SaveToFile


3-1081533189
SergP
2004-04-09 21:53
2004.04.11
Можно ли сделать такой интерестный select?


4-1079638059
MyNick
2004-03-18 22:27
2004.04.11
Запрет ALT-CTRL_DEL


8-1076327721
pai
2004-02-09 14:55
2004.04.11
ЗВУК И СЕТЬ


7-1080470063
Raki
2004-03-28 14:34
2004.04.11
Объем памяти видеокарты.




   Наверх