![]() |
Can Jscript and VBScript co-exist
I have a fairly large build script. The default language is VBS and everything is written in VBS. I have a need to utilize functionality that is in js and not vbs. Is there a way to make them co-exist? The location where I need it is inside of a step that has a TON of vbs that i wouldn't want to rewrite.
|
Other than Run Script steps, all other step script code (script events, script expressions, etc.) must use the default script language. You might be able to get away with dynamically changing the default script language mid-build.
|
Is there a way to call another step from within a step? Or maybe a custom action? We could always embed the js inside of another step or action.
|
Below is a sample Run Script vbscript that creates a new project with a single Run Script (jscript) step, which retrieves the computer name with jscript, which the VBScript "uses". This is derived from the Script.bld sample.
Code:
jscript = "var cname = new ActiveXObject('WScript.Network').ComputerName;" & vbcrlf & _ |
All times are GMT -5. The time now is 07:52 AM. |
Copyright © 1999-2023 Kinook Software, Inc.