Nested %..% representation in Windows 7
- by prosseek
In order to organize the PATH environment, I came up with the following method.
Setup variable : ABC = "PATH1;PATH2"
Set the path variable using the predefined setup variable : Path = %ABC%%DEF% ...
It seems to work fine, but I found that some of the variables are not transfomred into real paths when I run the set command. (I mean, the PATH=PATH1;PATH2;%DEF%, for example).
What I found was as follows.
If the variable name has '_', Windows can't transform it.
If the variable has the path with %...% variable, windows can't transform it.
Q1 : Am I correct?
Q2 : If so, is there a way to by pass the nested %...% varibale problem?