I thought of that, but was hoping for a Java method on the File Class or something. I dunno. Too many laguanges, some do this.
Since I really needed this for DB servers I found I can do EXEC master..xp_fixeddrives in SQL Server to get space. So I just to a JDBC connection to get the disk space. But I might have to the Runtime trick for my servers.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.