Java obtient un espace de disque gratuit actuel
/**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