KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Using .NET, I can write an app that hosts a scripting engine that complies with Microsoft's IActiveScript conventions. This includes JScript and VBScript from Microsoft, and also PerlScript, RubyScript and I don't know what else from third-parties . The way to do it in code is something like this: Type engine = Type.GetTypeFromProgID(progId, true); _engine = Activator.CreateInstance(engine) as IActiveScript; where the progId can take the value Javascript, JScript, ECMAScript, VBScript, and others. You can do something similar when running cscript.exe, specifying the progId on the command line with the //E option. For example, this command: cscript.exe <file> //e:JScript ..will run the specified file, regardless of its extension, through the JScript engine. On my machine, if I look in HKLM\SW\Classes\ , the three progIds {Javascript, JScript, ECMAScript} all point to the same CLSID, which I guess is the JScript 5.8 script engine: {f414c260-6ac0-11cf-b6d1-00aa00bbbb58} Is there a ProgId or CLSID I can specify to run IE9's Javascript engine, aka "Chakra"? Does IE9's engine still get loaded by IActiveScript? Microsoft's documentation suggests that it does , but does not specify a ProgId or CLSID.
Tags (comma-separated)
Save Edits
Cancel