O'Reilly logo

Pro Windows PowerShell by Hristo Deshev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

19.4. Windows Script Host Code Interoperability

PowerShell and .NET are really cool technologies, but it will take time until they take over the entire world. There is a lot of useful code out there written in VBScript, JScript, or other Windows Script Host-compatible languages. It would be very unwise, and maybe downright impossible, to throw all that code away and start rewriting everything in PowerShell. Besides existing code, the Web is full of examples automating various programs all written in VBScript or JScript. Sometimes, the examples are not short, and we cannot convert them to PowerShell on the fly. We need a usable way for our PowerShell code to interoperate with code written in JScript and VBScript.

Luckily, we have a good tool ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required