Is there a programmatic API for determining available space on NAS storage from a UNC path? I looked through the WMI documentation and it wasn't clear that this is possible.
A code example and references to the relevant API calls would be much appreciated.
In the windows API, GetFreeDiskSpaceEx seems to be the method to use, which works on UNC paths according to the MSDN docs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With