Windows Scripting

Links to my WSH-related material.  Currently being rebuilt, but the Mini-FAQ is here.


My Scripting Pages

Windows Scripting Host Mini-FAQ

An FAQ I put together in late 2001/early 2002.  It is aging and incomplete, and but still has useful information.

WSH FAQ Revisited

Newer, specific questions I have begun adding recently.

Useful Scripts

A handful of my favorite scripts which I have written or significantly modified from other sources.

Rube Goldberg Memorial Scripting Page

Unusual ways of accomplishing scripting objectives.

Parsing Script

Being able to parse itself is a critical test of a "mature" scripting language.  VBScript has no such intrinsic ability, but there are methods to do some of this with the Script Control.  Unfortunately, the information exposed by the Script Control is minimal; one may add code to an MSScriptControl object, but other than counting modules, counting procedures, and listing procedure names, argument counts, and whether or not they return data, the capabilities are limited.

This page shows some explorations I have made into using VBScript to parse VBScript; it is doable, and a few of the components and scripts I have linked here may be helpful.

Scripting Foundation Classes

This is a bit of a misnomer since it is not truly fundamental nor is is implemented as a set of classes. It is a collection of wrapper functions I have written over time to allow me to do rapid administrative scripting, and as such may be useful to admin scripters.  Experienced scripters will notice that they are patently NOT optimized for anything but ease of use (they're intended as "plug and play" procedures), but they work quite adequately.  If any are used thousands of times in a time-critical task, it is probably a good idea to move object bindings out to global declarations.

Custom ActiveX Components for WSH

A few custom components I've written, free for download.

Custom ActiveX Components for WSH Part 2

Components built from other people's code which is free to reuse.

Date conversions information

Very rough.

TLB Exporter

This is built from the ActiveX Documenter source code.  It is a minor modification which allows drag-and-drop library extraction.

Current bug: it does not work for libraries in paths with embedded spaces.


Contributions and Off-Site Material

Jean's WSH 5.6 Quick-Reference HTA

If you consider yourself a power scripter, you want this.  This is a local copy.

TLViewer

Again, if you consider yourself a power scripter, you want NEED this. Picture an ultralight, fast Object Browser that

In fact, Mark Pryor's website is generally a good stopping point for anyone interested in power scripting.

Internation WSH downloads

A direct link since these can be hard to find on the Microsoft site.

Bakkenalia

Torgeir Bakken posts some really great scripts in the microsoft.public newsgroups.  Here are some I've started collecting so I don't have to Google them out every time I want them.

The Bakkenalia Page

Remotely Installing WMI Onto  NT4