Comment by asveikau

1 day ago

I thought that the VBscript engine, accessible from cscript.exe, also has a builtin JavaScript frontend. The idea being that both of these are a scripting language that can interact with COM objects. No idea if the various embeddings of VBScript such as excel or ASP can use js out of the box though.

Active Scripting is the technology you are thinking of, JScript and VBScript are just the frontends for it that are shipped with Windows. It's honestly a pretty cool idea on the surface (coming from someone that's never actually used it anyway), you could develop/obtain an implementation for your favourite language, access the same functionality exposed by ASP/Office/IE, and as script hosts they would be none the wiser as to what language was being used (of course, it gets less useful the more users you have to ask to install your plugin).

The closest modern thing that's like this I can think of is Godot and its GDExtension.

As the sibling comment notes, VBScript isn't JScript, though both are executed by the Windows Script Host (wscript/cscript). JScript had already been deprecated in 2009 with IE 8.

VBScript is deprecated since 2023 and in the process of being removed: https://techcommunity.microsoft.com/blog/windows-itpro-blog/...

You also cannot run VBScript (nor JScript) from VB or VBA, other than invoking it as a separate process. VBA is not an "embedding of VBScript". VB/VBA are compiled to an intermediate representation called P-code, they aren't scripts in the sense of being executed from a textual representation like VBScript/JScript.

I believe you're thinking of JScript, they're not quite the same thing.