If I have a network share say \\myfileserver\documents
, can I find out programmatically how much disk space it is using (used/free space) using any API of some sort?
Please note it could be hosted by samba or it could be on a san storage device which means I won't be able to install anything on that machine to check the local disk usage and report it via some web service.
I'm writing code in .NET but I'm sure that doesn't matter.