Espen Klem said:
The variables are the one found under:
System Properties > Advanced > Environmental Variables
I have a lot of software installed to get a build-environment going
(java-stuff) that needs these environmental variables (both PATH-stuff and
others). It's easy to get them out if I had WinXP running, but since the disk
has crashed and I only got read-access through a Linux Live CD, I wanted to
know if there were any way of copy a file and do some cut'n'paste.
You can find them here:
HKEY_CURRENT_USER\Environment
or here:
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment
I haven't actually tested this but I expect that you can
read user variables by running regedit and loading the
file ntuser.dat from your profile folder as a hive. The
same would apply to system variables: In this case you
need to load the System registry file. Linux can do this
with ease, as can WinXP on another machine if it can
read the disk.
If these variables are so important and so difficult to recreate
then you should protect yourself against future mishaps by
backing them up. This simple command will do it for you:
set > c:\EnvVariables.txt