Building a library of reusable code is helpful because you don’t have to keep reinventing the
wheel each time you automate a new task. If you want to use a scripting language to write
reusable code, one option is to use Windows Script Components—WSC. (You can write reusable
code several ways. To learn about the various options, see the sidebar "Is WSC Right for You?")
What Is WSC?
WSC is primarily a feature of Windows 2000 and Microsoft IIS 5.0, but you can install WSC in
earlier Windows platforms as an add-on. To install WSC, you need to install either Microsoft
Internet Explorer (IE) 5.0 or later or Windows Script (WS) 5.5, which contains WSC. You can
download WS 5.5 from http://www.microsoft.com/msdownload/vbscript/scripting.asp. Although
WSC is a native object of IE 4.0 and Windows 98, Win98’s WSC (formerly called XML Scriptlets)
supports a slightly different syntax and isn’t fully compatible with Win2K’s WSC. In this article, I
cover the Win2K syntax. For information about the Win98 syntax, see the Microsoft Developer
Network (MSDN) article "Writing COM Objects with Scripting Languages". . . .
sanjsya January 25, 2004