June 12, 2006
If you use the GetWmiProperty function, you'll spend less time writing your WMI scripts.
May 8, 2006
In scripting, there’s more than one way to accomplish a task. Here’s one way to determine whether a certain year is a leap year.
April 10, 2006
This user-defined function works like the WScript.Sleep method but wakes the script up early if necessary.
March 13, 2006
The ScriptPath function determines a script's path while the script is running so that the script can, for example, use a .wsc file that's not registered on the computer.
January 17, 2006
This VBScript function lets you determine whether a given year is a leap year.
December 12, 2005
This simple VBScript function lets you write a string to a file without making you jump through hoops.
November 14, 2005
Determining the script host is important when a WSH script uses the WScript object’s Echo method repeatedly or uses certain WScript object properties. Here’s a function that determines the script host while the script is running.
October 10, 2005
There are many ways to check a computer for connectivity in a script. Here’s a function that pings computers by using WMI’s Win32_PingStatus object.
August 8, 2005
Here are two functions that let you obtain a user’s SID and, conversely, obtain the username associated with a SID.
July 11, 2005
Although there's no officially endorsed way for WSH to detect the .NET runtime library, here’s how you can use WSH and the DotNetVersion function to look for signs of the library’s presence.
June 13, 2005
Reading a text file into an array has its advantages, including being able to iterate through a file multiple times without having to close it and open it again
May 10, 2005
Instead of using ping.exe, which has some drawbacks, to ping remote computers, you can use the Alive function in your .vbs code and IsAlive.cmd in your .cmd code.
April 11, 2005
In this month’s column, learn how to use the IIf function and the GetToken function in your VBScript code.
April 11, 2005
Just like VBA’s built-in IIf function, the VBScript user-defined IIf function evaluates an expression and returns a specific value, depending on whether the expression evaluates to True or False.
April 11, 2005
Like cmd.exe’s For /f command, the GetToken function lets you parse a line for a specific token in VBScript code.
Add these Headlines to your Website