Windows Script Components


Windows® Script Components provide you with an easy way to create powerful, reusable COM components in script. You create script components using any scripting language that supports the Microsoft® ActiveX® Scripting interfaces. Script languages that support these interfaces include JScript, Microsoft® Visual Basic® Scripting Edition (VBScript), PERLScript, PScript, and Python.


In this example, I made kind of a Perl grep thing with WSC scriptlet.

To run this code, Active Perl 5.x ( and Windows Script 5.6 ( are required.

If you need some info, you can refer to the documentation of Windows script 5.6.

When I did this code, I found it is pretty exciting to do some Perl things in Visual Basic.