Hi all,
I have a disk monitor that runs on servers to check disk space, used, availabe, etc... On some servers however we are having drives go bad and my monitor just does an on error resume next, so it moves right on past and ignores them. I am trying to check if the drive is available, and if not, send us an event back. When I try to use wmi and win32_logicaldisk, I tried the status and it did not appear to give me any information. How do I make sure the drive is available before I try to read the space on the drive?
Thanks.
I have a disk monitor that runs on servers to check disk space, used, availabe, etc... On some servers however we are having drives go bad and my monitor just does an on error resume next, so it moves right on past and ignores them. I am trying to check if the drive is available, and if not, send us an event back. When I try to use wmi and win32_logicaldisk, I tried the status and it did not appear to give me any information. How do I make sure the drive is available before I try to read the space on the drive?
Thanks.