Can i get the particular disk space(like C: ) using Jav program..?
- by Venkats
I used SystemEnvironment class in java for getting system information.
In that i can get only RAM size, i can't get the specific disk space like c: and D:
code is,
com.sun.management.OperatingSystemMXBean mxbean = (com.sun.management.OperatingSystemMXBean)ManagementFactory.getOperatingSystemMXBean();
System.out.println("Total RAM:"+mxbean.getTotalSwapSpaceSize()/(1024*1024*1024)+""+"GB");
Can i get this using in java program?