(Delphi) Pegar espaço do hd
Saudações!
Para pegar o espaço livre, usado ou total do hd (disco rigido ou hard disk) basta usar o seguinte código
total := (DiskSize(3) div 1000000);
livre := (DiskFree(3) div 1000000);
usado := (DiskSize(3) -DiskFree(3)) div 1000000;