The VBScript Network and Systems Administrator's Cafe:

Error control

1

October 17, 2008  11:11 PM

Communicating error levels to a calling application from with in VBScript



Posted by: Jerry Lees
batch commands, Error control, errorlevel, exit, on error, VBScript, wscript, WScript.quit

We've discussed error handling previously (via the On Error Goto 0 command) in a entry titled, Using error control in a VBScript to recover from...

Bookmark and Share     2 Comments     RSS Feed     Email a friend

September 26, 2008  7:54 PM

VBScript Statements: Explanation of the On Error Statement



Posted by: Jerry Lees
Error control, on error, VBScript Statements

The on error statement allows you to somewhat control how the scripting engine handles errors in the scripts you write. It allows you to turn error handling on and off for the scripting engine so that you can handle them in your script.  The Statement essentially has two ways it is used. First...


April 25, 2008  1:26 AM

Reporting CPU usage by saving it to a file with the VBScript filesystem object



Posted by: Jerry Lees
Error control, File System Object, Functions, Scripting.FileSystemObject, VBScript

Last time, in my entry entitled

  Bookmark and Share     2 Comments     RSS Feed     Email a friend


March 12, 2008  5:38 PM

Use of option explicit and the DIM statement in VBSCRIPT.



Posted by: Jerry Lees
Development, Error control, Variable Types, VBScript, VBScript Statements

As an answer to the extra credit portion of my posting a few days ago: DIM in a script declares a variable to be used. It just simply creates the variable, nothing more. By default, vbscript will create variables on the fly for you as you use them...


February 29, 2008  10:30 PM

Using error control in a vbscript to recover from odd errors



Posted by: Jerry Lees
Development, Error control, VBScript, Windows Management Interface

In my last installment,

  Bookmark and Share     1 Comment     RSS Feed     Email a friend


February 29, 2008  2:45 AM

Finding HP Printers using PCL6 Drivers with WMI



Posted by: Jerry Lees
Development, Error control, Networking, Printer Administration, Printers, VBScript, Windows Management Interface

Recently, at my work we had a situation where users were reporting the printer was not printing their documents and/or it was printing very slowly. After digging into the problem, I found: 1. the documents were spooling just fine to the printer 2. the documents were not hanging in the...


1

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: