Nested %..% representation in Windows 7
Posted
by
prosseek
on Super User
See other posts from Super User
or by prosseek
Published on 2011-02-01T22:12:55Z
Indexed on
2011/02/01
23:29 UTC
Read the original article
Hit count: 236
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?
© Super User or respective owner