Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


Snippets to Go


15 results found for Snippets to Go, displaying items 1 - 15
 
[June 12, 2006]  
Function Lets You Write Less Code to Retrieve WMI Data
If you use the GetWmiProperty function, you'll spend less time writing your WMI scripts.
Windows IT Pro  — Alex K. Angelopoulos

[May 8, 2006]  
Function Provides Another Way to Determine Leap Years
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.
Windows IT Pro  — Readers

[April 10, 2006]  
The Delay Function Extends WSH’s Sleep Method
This user-defined function works like the WScript.Sleep method but wakes the script up early if necessary.
Windows IT Pro  — Jim Turner

[March 13, 2006]  
Determine a Script's Path On the Fly
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.
Windows IT Pro  — Bill Stewart

[January 17, 2006]  
LeapYear Function Might Have You Leaping for Joy
This VBScript function lets you determine whether a given year is a leap year.
Windows IT Pro  — Jim Turner

[December 12, 2005]  
The Write Stuff
This simple VBScript function lets you write a string to a file without making you jump through hoops.
Windows IT Pro  — Various Authors

[November 14, 2005]  
Function Determines the Script Host On the Fly
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.
Windows IT Pro  — Bill Stewart

[October 10, 2005]  
An Alternative Approach for Pinging Computers
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.
Windows IT Pro  — Readers

[August 8, 2005]  
Functions to Obtain SIDs and Usernames
Here are two functions that let you obtain a user’s SID and, conversely, obtain the username associated with a SID.
Windows IT Pro  — Bill Stewart

[July 11, 2005]  
Function Plays Sleuth and Searches for Signs
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.
Windows IT Pro  — Alex K. Angelopoulos

[June 13, 2005]  
Use the FileToArray Function to Read a Text File Into an Array
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
Windows IT Pro  — Bill Stewart

[May 10, 2005]  
A Worry-Free Way to Ping Remote Computers
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.
Windows IT Pro  — Bill Stewart

[April 11, 2005]  
Snippets to Go
In this month’s column, learn how to use the IIf function and the GetToken function in your VBScript code.
Windows IT Pro  — Readers

[April 11, 2005]  
A VBScript Version of VBA’s IIf Function
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.
Windows IT Pro  — Jim Turner

[April 11, 2005]  
Use the GetToken Function to Parse Delimited Lines
Like cmd.exe’s For /f command, the GetToken function lets you parse a line for a specific token in VBScript code.
Windows IT Pro  — Bill Stewart







Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement