October 3, 2008 3:00 PM
Posted by: Jerry Lees
HTML,
HTTP,
Microsoft.XmlHttp,
VBScript,
VBScript Objects,
Web Pages,
XMLRecently, 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
Posted by: Jerry Lees
Functions,
Replace,
String manipulation,
VBScript,
VBScript FunctionsRecently, 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
Posted by: Jerry Lees
Classes,
Private,
VBScript StatementsThe 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
Posted by: Jerry Lees
Error control,
on error,
VBScript StatementsThe 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
Posted by: Jerry Lees
Property,
Property Get,
VBScript StatementsWithin 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
Posted by: Jerry Lees
Property,
property set,
VBScript,
VBScript StatementsWithin 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
Posted by: Jerry Lees
Classes,
Property,
Property Let,
VBScript,
VBScript StatementsWithin 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
Posted by: Jerry Lees
Functions,
VBScript,
VBScript Functions,
VBScript StatementsThe 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
Posted by: Jerry Lees
commandline,
VBScript,
vbscript tips,
Wscript.ArgumentsOne 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...