This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Smart way of checking the hard drive?  RSS feed

 
Peter Pan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want my Java application to check if the hard disk drive is full or not. If it is full I want the application to terminate itself.
I could of course write 1 MB of dummy data to the disk and then delete it, but I was wondering if there is a smarter way.
/Peter
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!