冰 冰 原 Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-18 #2 用GetDiskFreeSpace<br>procedure Tform1.button1click(sender:Tobject);<br>var<br> driverchar;<br> sec1,byt1,cl1,cl2:longword;<br>begin<br> driver:=pchar('c:');<br> GetDiskFreeSpace(driver,sec1,byt1,cl1,cl2);<br> cl1:=cl1*sec1*byt1;{cl1中包含驱动器的总容量,cl2中包含驱动器的可用容量}<br> cl2:=cl2*sec1*byt1;<br>end;<br>
用GetDiskFreeSpace<br>procedure Tform1.button1click(sender:Tobject);<br>var<br> driverchar;<br> sec1,byt1,cl1,cl2:longword;<br>begin<br> driver:=pchar('c:');<br> GetDiskFreeSpace(driver,sec1,byt1,cl1,cl2);<br> cl1:=cl1*sec1*byt1;{cl1中包含驱动器的总容量,cl2中包含驱动器的可用容量}<br> cl2:=cl2*sec1*byt1;<br>end;<br>
C creation-zy Unregistered / Unconfirmed GUEST, unregistred user! 2001-09-18 #3 DiskFree,DiskSize<br>具体用法见Delphi帮助