G
Guest
Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)
I have seen this weird behavior with Windows XP
using system properties (advanced tab) define following environment
variables in this order:
Name Value
==========
C CCC
B %C%\BBB
A %B%\AAA
Now when you open command window and run set, you would see these variables
defined as:
A %B%\AAA
B CCC\BBB
C CCC
What is interesting is that variable B expands to include definition
variable C, but for some reason variable A does not expand to include
definition of B.
These cases are very simplified examples. I encountered this while I was
defining some directory locations using environment variables. If A, B and C
are all directory components, then following commands would work properly:
cd %B%
cd %C%
but follwoing command would fail:
cd %A%
Another interesting observation is that: if you look at definition of these
variables using "Advanced" tab of system properties, you would see that all
of them expand properly.
Does anybody has any idea what's happening?
I have seen this weird behavior with Windows XP
using system properties (advanced tab) define following environment
variables in this order:
Name Value
==========
C CCC
B %C%\BBB
A %B%\AAA
Now when you open command window and run set, you would see these variables
defined as:
A %B%\AAA
B CCC\BBB
C CCC
What is interesting is that variable B expands to include definition
variable C, but for some reason variable A does not expand to include
definition of B.
These cases are very simplified examples. I encountered this while I was
defining some directory locations using environment variables. If A, B and C
are all directory components, then following commands would work properly:
cd %B%
cd %C%
but follwoing command would fail:
cd %A%
Another interesting observation is that: if you look at definition of these
variables using "Advanced" tab of system properties, you would see that all
of them expand properly.
Does anybody has any idea what's happening?