• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get the free space of Hard Disk

 
Jeffy Yang
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wonder if there is a way to get the free space of Hard Disk using JDK API. Any suggestion will be appreicated. thank you in advance.
 
John Spindler
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can do it with this:
http://www.tolstoy.com/samizdat/jconfig.html
it's not core API but it will do the trick.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sure that those classes are very good, however, I would remember that JConfig is written in JAVA therefore, you should still be able to do anything that JConfig does without JConfig. On the other hand, maybe that would be pointless if someone else has done the job for you. But the way Jconfig advertises their product is that it access some low level system information that can't be reached with the core JAVA API classes. Fooy, how did they do it then. Plus, there is no such thing as low level java. Unless you are using JNI and some other language mixed with JAVA, JAVA still sits at a super high level on top of the OS. Don't be fooled. Be smart.
 
John Spindler
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Gregg Bolinger:
you should still be able to do anything that JConfig does without JConfig. On the other hand, maybe that would be pointless if someone else has done the job for you.

I agree! dont' reinvent the wheel but if you want to know how they do it you can download the source to Jconfig right off they're site.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic