drive size in java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shahas
    New Member
    • May 2007
    • 1

    drive size in java

    How to find the physical drive size in java, what is the method used to find it??
  • DeMan
    Top Contributor
    • Nov 2006
    • 1799

    #2
    Hi shahas,

    Welcome to thescripts. I'm sure you will find a llot of useful information available fromt eh experts in the various forums (accessibly from the tags on the blue bar at the top of your screen).

    As this question appears to be Java related, I will move it to hte appropriate forum for you....

    Comment

    • prometheuzz
      Recognized Expert New Member
      • Apr 2007
      • 197

      #3
      Originally posted by shahas
      How to find the physical drive size in java, what is the method used to find it??
      You can find that information through the java.io.File class (specifically look at the getFreeSpace() method):


      Note that you need the latest version (1.6) of the JDK for this!

      Comment

      Working...