wood burning stoves 2.0*
The moose likes Java in General and the fly likes Free space in a drive Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Free space in a drive" Watch "Free space in a drive" New topic
Author

Free space in a drive

Rajib Sarma
Ranch Hand

Joined: Apr 29, 2002
Posts: 34
Hi,
How can I obtain the amount of free space in a drive?
-Thanks
Rajib


*** Rajib Prasad Sarma ***<br />==========================
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

For which operating system?


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Rajib Sarma
Ranch Hand

Joined: Apr 29, 2002
Posts: 34
Hi Michael,
For windows. Is there any platform independent way?
Thanks
-Rajib
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
There is no platform dependent way that I know of (as of JDK 1.3, but I doubt they added any in JDK 1.4). You need to make some native JNI calls.
--Mark
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Free space in a drive