Tsearchrec确实有一个size属性<br>大小以字节计算<br>Var<br> f:Tsearchrec;<br> i:integer;<br> fname:AnsiString;<br>Begin<br> f:=Tsearchrec.create;<br> if findfirst('d:/data/*.*',FaAnyfile,f)=0 then<br> While findnext(f)=0 <br> begin<br> fname:=f.Name;<br> i:=f.Size; //i即为文件大小<br> .........................<br> end;<br>end;