Re: Environment variables defined using My Computer Properties



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
>
>
>
.



Relevant Pages

  • Re: title bar and toolbar missing on Word 2000. How to get them ba
    ... The Run command should be on your START menu. ... To expand 'hives' in the Registry, you just click the little triangular bullet to the left of each heading. ... To see Help topics for using the Registry Editor, click on the Help menu in the editor and choose 'Help Topics'. ...
    (microsoft.public.word.application.errors)
  • Re: title bar and toolbar missing on Word 2000. How to get them ba
    ... The run command was on the start menu. ... To expand 'hives' in the Registry, you just click the little triangular ... Terry Farrell - MSWord MVP ...
    (microsoft.public.word.application.errors)
  • Re: Command. com in Run
    ... would expand a new copy to the \system32 directory. ... Generally to start the 32 bit command interpreter; ... Microsoft Certified Professional ... | When I go to the Registry there is not a VDD, ...
    (microsoft.public.windowsxp.basics)
  • Re: Sndrec32.exe missing
    ... MS-MVP Windows Shell/User ... Cannot expand a file onto itself: c:\windows\system32\sndrec32.exe ... leave the -R out of the command. ... Copyright 1985-2001 Microsoft Corp. ...
    (microsoft.public.windowsxp.general)
  • Re: What Is "ONSIO Service"
    ... > How to expand and rename VDMDBG.DL_ to vdmdbg.dll. ... > Open a command prompt window. ... > change X to = your hard drive letter with the actuall path. ...
    (microsoft.public.windowsxp.perform_maintain)