The WSH Common Library
Several years ago, we began collecting frequently used snippets of code into a VBScript library. This library is large enough to be of some potential use to almost any VBScript programmer or even sysadmin scripter. For convenience, the library is now packaged as a Windows Script Component, which creates a COM server from WSH code.
Installation Instructions:
- Download the zip file here.
- Unzip it into a suitable directory, such as your Desktop.
- Right-click CommonLibrary.wsc in the chosen directory and choose Register. This will register the COM component on your computer. (On Vista, running as an elevated administrator is necessary to register the component for all users.)
- Use the included typelib (CommonLibrary.tlb) and sample script file (SampleCommonLibrary.vbs) to investigate the library. Or look at the code inside the .WSC file. It's just VBScript wrapped in some special XML.
This program is licensed under the GNU Lesser
General Public License version 3.