Assorted Scripts

Demo Scripts

Finding your own PID from a WSH script

A WSF script demoing how you can "use a "prestaged" script to pass a script's PID to itself.

Any2ANSI

Converts a Unicode file to ANSI format.

System Administration

Prevent ICW Icon from being installed

This script follows Microsoft's posted instructions for preventing the ICW icon from being installed to user desktops, a particularly handy trick for Terminal Services.  There is one problem - the ICW removal does not work.  I'm posting this since it goes through all the motions; the lucky admin who can indeed find the extra settings to modify can use this as a foundation.

Prevent OE Icon from being installed

As above, only for OE.  The critical difference is that this one does indeed work.

NetEdit: instant access to HOSTS/LMHOSTS et alia

I've always found it annoying that there is no rapid way to access the hosts, lmhosts, and other network config files on a Windows NT system.

This script simply pops them all up in separate instances of Notepad.

HTML Applications

String-O-Matic

A string-parsing app inspired by the Microsoft Scripting Center's Script-O-Matic.

Classes

I've recently been doing some work with converting the functions I use into classes for use from script.