June 20, 2008 3:19 PM
Posted by: Jerry Lees
dimensional arrays,
erase,
VBScript,
VBScript Statements,
vbscriptstatements,
working with arraysThe VBScript Erase statement is used to erase all the values of an array, but keep the array size and dimensions intact.
This is useful when you re-use an array and you want to ensure the values inside an array have truely been cleared and no old data is left in the array.
For example, the...
June 18, 2008 1:14 PM
Posted by: Jerry Lees
exit,
VBScript,
VBScript Statements,
vbscriptstatementsThe Exit statement in vbscript allows you to exit a block of code, in the case of a subroutine (Exit Sub) or a function (Exit Function), or the entire script.
This statement is assumed at the end of a script, and therefore is not required, but is typically used in conditional statements...
June 14, 2008 10:19 PM
Posted by: Jerry Lees
Conditional statements,
do loop,
do until,
do while,
until,
VBScript,
VBScript Statements,
vbscriptstatements,
whileThe Do ... Loop statement is very useful (like, for ... next and Select ... case) to execute a block of code more than once. However, where it differs from the other two is that the Do ... Loop statement executes the code as long as (while) a condition is true or...
June 6, 2008 1:53 PM
Posted by: Jerry Lees
Functions,
regwrite,
regwrite method,
wscript.shellLast time I posted I gave you a function that provided
June 4, 2008 2:57 PM
Posted by: Jerry Lees
regread,
regread method,
VBScript,
wscript.shellOn occasion when administering a group of systems you need to preform certain tasks depending on if something is installed or a particular setting is a certain value and the only way to determine if a system needs attention is to look in the registry. So, In this installment we will look at...
May 26, 2008 3:48 PM
Posted by: Jerry Lees
option,
option explicit,
VBScript,
VBScript Statements,
vbscriptstatementsIn VBScript declaring your variables up front is not required (as stated in this sites explanation of the Dim Statement), however, many programmers choose to declare their variables up front to avoid having to track down misspellings in their code. They go further by adding the Option...
May 24, 2008 3:47 PM
Posted by: Jerry Lees
DIM,
DIM Statement,
VBScript,
VBScript Statements,
vbscriptstatementsThe DIM statement is used to declare variables prior to being used. To save space in your code, you can declare more than one variable in a single statement by separating each variable with a comma.
For example:
Dim x
Dim x, y, z
The Dim...
May 23, 2008 8:00 PM
Posted by: Jerry Lees
Const,
Const statement,
VBScript,
VBScript Statements,
vbscriptstatementsThe Const statement is useful when you want to reference a specific, unchanging, value in your code multiple times without typing it over and over.
For example, in order to use the Const Statement to create a reference to the value of pi to 50 decimal places, you use...
May 21, 2008 6:49 PM
Posted by: Jerry Lees
else,
If Then,
IF Then Else,
Logical File,
Then,
VBScript,
VBScript Statements,
vbscriptstatementsThe If/Then/Else statement in VBScript is very similar to the Select Case statement, except it only normally allows for 2 possibilities in your condition. ...