logoalt Hacker News

asveikauyesterday at 10:04 PM2 repliesview on HN

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.


Replies

layer8yesterday at 10:50 PM

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.

22cyesterday at 10:53 PM

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