Fred Ma wrote:
> Hello,
>
> I had to reinstall windows 2000 on my Dell laptop. The support folks helped me
> to save customizations in my environment variables by exporting the registry
> at:
>
> HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
>
> I want to selectively cut and past snippets from the exported registry to the
> panel MyComputer->Properties->Advanced->EnvironmentVariables. However, when I
> open the exported registry with my favourite editor (vim), some of the entries
> appear to be in double-digit hex. For example, the PATH is a series of hex
> numbers separated by commas. I don't want to cut and paste that into the GUI
> panel for environment variables.
>
> Is there a way to get the text version of these environment variables?
Hi
This is how I would have done it:
Edit the registry file and "rename" the key path to e.g.
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\OldEnvironment
(note the 'Old' addition)
Then import the registry file. You can now use regedit.exe to obtain
the value data snippets you want to paste to MyComputer->Properties->
Advanced->EnvironmentVariables.
When you are finished, delete the 'OldEnvironment' key
--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/com...r/default.mspx