|
Error Codes Show the description of an error code
You either input the error code or pass it as an argument.
It shows its description.
Runs either under wscript or cscript.
Less than 10 lines of code ! |
File Name : errorcode.vbs
Requirement : none
Author : Jean-Luc Antoine
Submitted : 03/09/2001
Category : Other
Preview : Click here !
If Wscript.Arguments.Count=0 Then
x=InPutBox("Please enter the error code","Usage : [wscript|cscript] " & Wscript.ScriptFullName & " errCode")
Else
x=Clng(WScript.Arguments(0))
End If
on error resume next
err.raise x
wscript.echo err.description
|
|