bobmiers Posted September 3, 2014 Share Posted September 3, 2014 Hello all I'm attempting to write a template for creating installs for about 30 similar applications and would like to use the setEnvVar and getEnvVar functions. Because I need to have the text string used in multiple WPI cmd lines, I would like to use the setEnvVar to inset a folder name into an Env Variable. This would allow me to edit the name in one place. (Creating the env var was accomplish with {JSCRIPT}=setEnvVar("FoxFolderName","Fox001",true) I've checked the environment for this variable and value is there and correct. However when I attempt to put the getEnvVar() in to other WPI cmds, such as:{JSCRIPT}=if (!FolderExists("%ProgramFiles(x86)%\FoxgloveMisc\getEnvVar("FoxFolderName")\")) RunCmd('cmd /c mkdir "%ProgramFiles(x86)%\FoxgloveMisc\"',false,true) the command fails. Any help/hint will be appreciated. BobMiers Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now