Re: regedit changes to environment variable not taken into acount
- From: "Blackadder" <black@xxxxxxxx>
- Date: Wed, 27 Jul 2005 17:31:56 +0000 (UTC)
"cal" <perso.lehalle@xxxxxxxxx> wrote in message
news:1122480233.207231.140140@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> the problem is that it does NOT work...
> try someting like:
> regedit /s test.reg
> with test.reg like:
> ==== test.reg ====
> Windows Registry Editor Version 5.00
>
> [HKEY_CURRENT_USER\Environment]
> "GARBURE"="garzol"
> ==== END OF FILE ====
>
> then open ANOTHER cmd.exe and type:
>> echo %GARBURE%
> and see the result...
>
> then open the system/advanced/env-var panel: the GARBURE var will be
> there, but innefficient.
> click on the OK button of this panel and open another new cmd.exe, type
> again:
>> echo %GARBURE%
> and see the result...
>
> so strange...
Sorry, I obviously wasn't clear enough.
The correct way to create a permanent envirnment variable is to use the
System | Advanced | Environment Variables dialog. Merging a REG file will
NOT update the shell -- hence you have to OK the dialog after merging.
To make an environment variable take immediate effect, simply use SET from
the command shell. You'll obviously have to repeat this for every command
shell -- unless you use the correct method as stated above.
.
- References:
- regedit changes to environment variable not taken into acount
- From: perso . lehalle
- Re: regedit changes to environment variable not taken into acount
- From: Blackadder
- Re: regedit changes to environment variable not taken into acount
- From: cal
- Re: regedit changes to environment variable not taken into acount
- From: Blackadder
- Re: regedit changes to environment variable not taken into acount
- From: cal
- regedit changes to environment variable not taken into acount
- Prev by Date: Emails on log in Screen
- Next by Date: Re: network log on
- Previous by thread: Re: regedit changes to environment variable not taken into acount
- Next by thread: Re: regedit changes to environment variable not taken into acount
- Index(es):