We have a Windows Server 2008 R2 machine that has a directory that holds all of the third party libraries our dev team uses. I set up a system wide environment variable called 3P_Libs
. From cmd prompt I can see the correct value:
D:\_AMG_Integration_\_NightlyBuild_>echo %3P_Libs%
D:\_third_party_libraries_
I have a nightly build script that references this path when building but it throws an error because the '3' is dropped leaving just the value of P_Libs
instead of the correct path. I added an echo of the value from the script:
D:\_AMG_Integration_\_NightlyBuild_>echo P_Libs
P_Libs
It appears that the batch file is interpreting %3 on its own as the 3rd input variable despite the fact that no input has been provided to the script. Is there something that needs to be done to escape the '3'?