Hi, I want to know the how to find the amount of free space that is present in the hard disk & the amount of space that is used through java code. Is it possible, if yes how?
The way I would probably do this would be to write a small executable in native code that determines this information and then call that .exe from java. The WIN32 API includes a function called getDiskFreeSpace that returns this information. In fact, I have a small VB executable that does this if you need it.
Hi, I want to know the how to find the amount of free space that is present in the hard disk & the amount of space that is used through java code. Is it possible, if yes how?