
How to set the PATH variable?
Answered my own question! ->
var WshShell = WScript.CreateObject("WScript.Shell");
var WshSysEnv = WshShell.Environment("PROCESS");
// Setup path to things we need...
var szSupportPath="C:\\My Installations\\__support"
var szISProgramPath="D:\\Program Files\\InstallShield\\InstallShield 5.5
Professional Edition\\Program"
var szPFTWProgramPath="C:\\Progra~1\\Instal~1\\Packag~1"
// Set the search path to find InstallShield's command line tools and
batch support files
WshSysEnv("PATH") = szSupportPath + ";" + szISProgramPath + ";" +
szPFTWProgramPath + ";" + szSavePath
Quote:
> I am trying to port some batch files to JavaScript and need to setup
various
> PATHs to applications that will be executed from within the script. How
> does one modify the PATH variable in JavaScript/WSH?