List of VBScript Scripts with Descriptions

Generated on 25/07/2011

calligraphy.vbs

Generates line-guide sheets for use in calligraphy. Produces a LaTeX source file that draws three lines (top of upper-extender, top of x, and bottom of x) repeatedly down the page, in the ratio 3:2:3. Takes three parameters: the total line height (absolute mm), the extender height (dividend), and the x height (divisor)

catscripts.vbs

Writes a HTML page, which lists all the VBS files in the current folder and all its subfolders. For each VBS file found, prints its DESCRIPTION: section. Prints all lines starting from the first line containing "DESCRIPTION:" and ends with the first line that is empty or contains only whitespace or only a single comment header (').

cmd-line-args.vbs

Demonstrates how to obtain any arguments that were given when the user called this script.

dict_sort.vbs

A function to sort dictionaries by key or item. Original function from http://support.microsoft.com/kb/246067, enhanced to support ascending and descending order, as well as textual and numeric comparison (11 appears AFTER 2 with an ascending NUMERIC sort, but BEFORE with an ascending TEXTUAL sort).

dirsubwithdate.vbs

Demonstrates recursion (when a function calls itself one or more times). It explores a folder and all its subfolders by calling itself each time it detects a subfolder that it hasn't yet visited. Once it reaches the bottom-most folder (one with no subfolders), it backtracks to the next-higher folder and looks for another subdirectory. Thus, it is a DEPTH-FIRST search, meaning that it goes DOWN into subfolders until it reaches the bottom, before going back up and searching the other subdirectories.

list-files.vbs

Demonstrates how to use the FileSystemObject to list the drive letters active on the computer, and then to gain access to the current working folder, and then list all the files in that folder.

list-processes.vbs

Uses Windows Management Instrumentation to list the computer's running processes.

listoutlookmessages.vbs

Reads Outlook's Sent Items folder, and lists the Create Time, Sent Time, To and Subject fields for all the messages. Might be handy for estimating time spent on projects (presumably identified by To (client) or Subject field).

params.vbs

Demonstrates the effect of ByVar and ByVal parameters in a subroutine (or function) header.

recurse.vbs

Demonstrates recursion (when a function calls itself one or more times). It explores a folder and all its subfolders by calling itself each time it detects a subfolder that it hasn't yet visited. Once it reaches the bottom-most folder (one with no subfolders), it backtracks to the next-higher folder and looks for another subdirectory. Thus, it is a DEPTH-FIRST search, meaning that it goes DOWN into subfolders until it reaches the bottom, before going back up and searching the other subdirectories.

screen-output.vbs

Demonstrates the various methods of output to screen (rather than file). Checks whether the script engine was CSCRIPT or WSCRIPT.



Copyright © Neil Carter