The VBScript Network and Systems Administrator's Cafe:

Development


October 6, 2008  4:36 PM

Using the windows file dialog box in VBScript to provide file selections and populate script options



Posted by: Jerry Lees
Development, File Dialog, tips and tricks, UserAccounts.CommonDialog, VBScript, vbscript tips

Sometimes the command line is great for getting a script running and doing the task a script was intended to do, however, sometimes you simply don't want to add the overhead of opening a command prompt, navigating to the directory where your script is located, and then remembering the command line...

October 3, 2008  3:00 PM

How to retrieve HTML web pages with VBScript via the Microsoft.XmlHttp object



Posted by: Jerry Lees
HTML, HTTP, Microsoft.XmlHttp, VBScript, VBScript Objects, Web Pages, XML

Recently, I had a situation where I had to pull down a HTML page to compare it to a known copy of the page. Certainly, IE or FireFox-- or Google's Chrome would have done the trick and I could have viewed the source. But that would require me to do...


October 1, 2008  2:06 PM

Easy string manipulation with VBScript using the Replace Function



Posted by: Jerry Lees
Functions, Replace, String manipulation, VBScript, VBScript Functions

Recently, I had a situation at the office where I needed to check a web.config file for the existence of a setting. Not a hard problem-- just open the file up an look for it, however, that becomes a little harder when your talking about 30 servers. So, I scripted it using the replace...


September 27, 2008  8:19 PM

VBScript Statements: Explanation of the Private Statement



Posted by: Jerry Lees
Classes, Private, VBScript Statements

The Private statement is used to declare a variable as being Private inside a script. If used outside of a class it has little effect and the variable can be used throughout the script, however, if used inside a class statement it will only be able to be used inside the class statement...


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...


September 20, 2008  8:10 PM

VBScript Statements: Explanation of the Property Get Statement



Posted by: Jerry Lees
Property, Property Get, VBScript Statements

Within a VBScript class the Property block allows you to Get the value of the property in the class. This statement works in conjunction with the Property Let and Property Get statements and can only be used inside a class inside VBScript-- and no where else in the script.  By default the...


September 19, 2008  7:50 PM

VBScript Statements: Explanation of the Property Set Statement



Posted by: Jerry Lees
Property, property set, VBScript, VBScript Statements

Within a VBScript class the Property block allows you to set the value of the property in the class. This statement works in conjunction with the Property Let and Property Get statements and can only be used inside a class inside VBScript-- and no where else in the script. This would in turn be...


September 18, 2008  7:31 PM

VBScript Statements: Explanation of the Property Let Statement



Posted by: Jerry Lees
Classes, Property, Property Let, VBScript, VBScript Statements

Within a VBScript class the Property block allows you to set the name of the property in the class. This statement works in conjunction with the Property Set and Property Get statements and can only be used inside a class inside VBScript-- and no where else in the script.  By default the...


September 13, 2008  11:11 PM

VBScript Statements: Explanation of the Function Statement



Posted by: Jerry Lees
Functions, VBScript, VBScript Functions, VBScript Statements

The Function statement creates a function and allows you to list the arguments (if any) which are to be passed into the function.   The major difference between a function and a subroutine, is that a function can return a value. To return a value you...


September 12, 2008  6:04 AM

How to use command line arguments in VBScript via the Wscript.Arguments Object



Posted by: Jerry Lees
commandline, VBScript, vbscript tips, Wscript.Arguments

One thing that comes up frequently in my need to script tasks, is the ability to run a script from the command line, or as a scheduled job with parameters passed to it from the calling application. In a "set it and forget it" script it's not such a big deal to have arguments...


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: