sarya
14 years agoFrequent Contributor
how to define variables to be used in project run on a separte machine
Hi,
I have defined variables in my script units as:
var toolpath = "C:\ProgramFiles(x86)\abc.exe"
var servername = "vmsa"
If I have to run the same project suite on an XP machine where toolpath = "c:\ProgramFiles\abc.exe" and run on server with servername ="vm2k3" ,then I have to modify the toolpath and servername across all units defined in the script . Can I not define variable somewhere as 'toolpath' and just change at one location instead of changing at every single location in the script. I read the help articles on the variables but did not understood how to define and use the variables.
How can I sove this ? If variables are to be defined in the variables section ,can you please describe the appropriate steps ?
Thanks.
Sumedha
I have defined variables in my script units as:
var toolpath = "C:\ProgramFiles(x86)\abc.exe"
var servername = "vmsa"
If I have to run the same project suite on an XP machine where toolpath = "c:\ProgramFiles\abc.exe" and run on server with servername ="vm2k3" ,then I have to modify the toolpath and servername across all units defined in the script . Can I not define variable somewhere as 'toolpath' and just change at one location instead of changing at every single location in the script. I read the help articles on the variables but did not understood how to define and use the variables.
How can I sove this ? If variables are to be defined in the variables section ,can you please describe the appropriate steps ?
Thanks.
Sumedha