Register WSC Scripts Before Using Them in ASP

The Windows Scripting Component is a great tool that let's you create COM components for use in ASP pages. What's more, you can use either VBScript or JavaScript to give them functionality.

When you create a WSC component, however, you must register it before you can use it in an ASP page. To do so, open Windows Explorer and right-click on the WSC file you just created. Select Register from the shortcut menu.

To create an object variable based on the new script object, use code similar to

Set objXMLCreate = Server.CreateObject("MyScriptObj.WSC")

At this point, you're free to access any of the object's methods and properties.

Source: Mike D. Jones
Viewed 14149 times