Re: Environment variables defined using My Computer Properties
- From: Yogi Watcher <YogiWatcher@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 13:40:03 -0700
Is there any way around this....other than renaming variables to be in
alphabetical order?
"David H. Lipman" wrote:
> From: "Yogi Watcher" <YogiWatcher@xxxxxxxxxxxxxxxxxxxxxxxxx>
>
> | 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?
>
> It is the same in Win2K.
>
> I'd have to say it has to do with a secondary dependancy and the order set in the Registry
> since the Registry is sorted alphebetically and A is set before B being which is set before
> C is being set.
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
>
> When I changed the A variable to Z it works as expected
>
> B=CCC\BBB
> C=CCC
> Z=CCC\BBB\AAA
>
> --
> Dave
> http://www.claymania.com/removal-trojan-adware.html
> http://www.ik-cs.com/got-a-virus.htm
>
>
>
.
- Follow-Ups:
- Re: Environment variables defined using My Computer Properties
- From: David H. Lipman
- Re: Environment variables defined using My Computer Properties
- References:
- Environment variables defined using My Computer Properties
- From: Yogi Watcher
- Re: Environment variables defined using My Computer Properties
- From: David H. Lipman
- Environment variables defined using My Computer Properties
- Prev by Date: Re: Explorer halts
- Next by Date: Outlook Express
- Previous by thread: Re: Environment variables defined using My Computer Properties
- Next by thread: Re: Environment variables defined using My Computer Properties
- Index(es):
Relevant Pages
|