Error Handling

You can use code like the following to display errors:

If (Err.Number <> 0) Then 
    Wscript.Echo "Error #:     " & Err.Number 
    Wscript.Echo "Description: " & Err.Description 
End If
 

© 1997-1998 Microsoft Corporation. All rights reserved.