dcsimg
Available Disk Space
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   chris_pais
Posted On:   Wednesday, December 19, 2001 02:16 PM

Hi,
Could anyone tell me how to find the amount of disk space available and the total memory on the local machine?
Thanks.

Re: Available Disk Space

Posted By:   Gianluca_Sartori  
Posted On:   Friday, December 21, 2001 01:09 AM

I'm sorry, I had to face it some time ago. There is no "pure java" way to know available disk space. You could write a native method and access it via JNI. An alternative way is to call a system tool to gain this information checking for command output. When I had to cope with it I was quite lucky, because I could access a ASP page which contained just available space information. Don't know if it is useful in your case.
About | Sitemap | Contact