没有快速,取决于你的电脑! var globect:word=0;procudure getflnum(_path:string); FindFirst FindNextIf _FL.attrib=$10 then 第归调用本过程(_path+'/'+_FL.filename)!If (_FL.attrib and $f0)=$20 then inc(globect);end;procedure form1.button1click(); begin globect:=0; getflnum('c:/dir'); showmesage('file no:'+inttostr(globect)); end;