to happycyp你笔记中的获取内存信息也不准~你试下我这个吧:<br>procedure TForm1.Button8Click(Sender: TObject);<br>var<br> sector,byte,cluster,free: DWORD;<br> freespace,totalspace: longint;<br>begin<br> GetDiskFreeSpace('C:', LPDWORD(@sector)^, LPDWORD(@byte)^, LPDWORD(@free)^, LPDWORD(@cluster)^); //获得返回参数<br> totalspace := cluster * byte * sector div 1024 div 1024; //计算总容量<br> freespace := free * byte * sector div 1024 div 1024; //计算可用空间<br> Memo1.Lines.Add('C盘总空间(' + inttostr(integer(totalspace)) + 'MB)。');<br> Memo1.Lines.Add('C盘可用空间(' + inttostr(integer(freespace)) + 'MB)。');<br>end;