Java Obtenha espaço de disco gratuito atual
/**Get the current free disc size of the system
* @return The disc size of the system as a long value
* **/
public static long discSize() {
File diskPartition = new File("C:");
long freePartitionSpace = diskPartition.getFreeSpace();
return freePartitionSpace;
}
Karamolegkos