How To Get Free Disk Space And Other WMI Stuff (.NET) (dev102.com)

submitted by shaharyrshaharyr(4325) 3 years, 3 months ago

Before actually saving the file, I need to compute its anticipated size and compare it with the free disk space to see if there is enough storage for that operation. After searching a bit about how to get the free disk space, I came across the solution which uses the System.Management namespace.

2 comments |category: |Views: 206

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by redtetrahedronredtetrahedron(20) 3 years, 3 months ago 0

Ummmm ... how about System.IO.DriveInfo.AvailableFreeSpace ???

Reply

posted by johnrummelljohnrummell(1296) 3 years, 3 months ago 0

@redtetrahedron, ditto.

I made the mistake of visiting the article without ad block ... Holy blinking ads! I've never seen so many.

Reply

information Login or create an account to comment on this story