Recently, I have created a thread about the fact that the .NET Framework does not allow to read NAS drive properties as this is not a Windows drive. After that, in order for our monitoring to detect if 90% of available space has been reached, we relied on a monitoring team, which has roles of doing things like that at the enterprise level. However, before, when we were on a 100% Windows infrastructure, we were able to do it by ourselves.
Yesterday, someone suggested to use the DIR command and parse the output to collect the number of free bytes. So, this is good. I cannot obtain the 90% ratio but I can verify that we have a minimum amount of free bytes before sending an alert. Would there by another DOS command that would give me the total available space of the disk?