• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to get the free space of Hard Disk

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I miss the old days when I would think up a sinister scheme for world domination and you would show a little emotional support. So just look at this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic