I'm aware of the reasons to use VBScript/JScript as scripting languages. Apart from Python I want to use Tcl/Tk and AutoHotkey. Therefore my question is whether it's possible to configue the Script interpreter settings in the Command Line Interface dialog?
thanks for your fast answer. I wasn't aware of that. Maybe it would be usefull to add all the installed languages to the drop-down list just as a check.
There's no way to know what the installed languages are other than searching the entire HKEY_CLASSES_ROOT registry key (which we could do, but it doesn't seem that useful since generally very few people will install additional languages).
No, that's the whole point There's no nice neat sub-key that contains all of the script engines, they're spread out and the only way to find them is to start from the file extension and follow the trail (or to search for the ScriptEngine sub-key).
E.g. JScript is registered as follows:
HKEY_CLASSES_ROOT.js -> Default value points to JSFile.
HKEY_CLASSES_ROOT\JSFile\ScriptEngine -> Default value points to JScript.
HKEY_CLASSES_ROOT\JScript\CLSID -> Default value points to the CLSID of the JScript engine.
[quote="jon"]No, that's the whole point There's no nice neat sub-key that contains all of the script engines, they're spread out and the only way to find them is to start from the file extension and follow the trail (or to search for the ScriptEngine sub-key).
E.g. JScript is registered as follows:
HKEY_CLASSES_ROOT.js -> Default value points to JSFile.
HKEY_CLASSES_ROOT\JSFile\ScriptEngine -> Default value points to JScript.
HKEY_CLASSES_ROOT\JScript\CLSID -> Default value points to the CLSID of the JScript engine.[/quote]
Jon, have you seen this? ICatInformation.EnumClassesOfCategories
Use CATID_ActiveScriptParse and/or CATID_ActiveScript category as the second parameter. Link.
You'll have to map each returned classid to progid, but that's about it.
It requires that the engine has registered itself with that/those categories, but most (if not all) do.