Interesting way of discovering JScript version

No worries, no offense taken :smiley:

Yes, I do use VSC almost for anything more than 30 lines of code, I rarely store anything in buttons, but in.js files. especially so I can reuse the commands or logic.

See:

^ This 2nd one has fundamentally changed how I code for DOpus. First time you open any old script in VSC, the warning might be overwhelming, but I'll never go back.

Not me, I stoped at the Regedit error, but tested only this to verify your findings:

// run with cscript.exe test.js //E:{16d51579-a30b-4c8b-a276-0ff4dc41e755}
WScript.Echo(GetScriptEngineInfo());
function GetScriptEngineInfo()
{
    var s= "";
    s += ScriptEngine() + " Version ";
    s += ScriptEngineMajorVersion() + ".";
    s += ScriptEngineMinorVersion() + ".";
    s += ScriptEngineBuildVersion();
    return(s);
}
1 Like