How can I check for available disk space?

Viewed 55111

I need a way to check available disk space on a remote Windows server before copying files to that server. Using this method I can check to see if the primary server is full and if it is, then I'll copy the files to a secondary server.

How can I check for available disk space using C#/ASP.net 2.0?

5 Answers
Related