Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error checking

Status
Not open for further replies.

lytus

MIS
Jun 17, 2004
48
US
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.
 
IF (Err.Number <> 0) THEN
... you have an error ...
... do whatever you need to do ...
... then clear your error ...
Err.Clear
END IF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top