The PATH environment variable is stored in Windows Registry under:
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet00x\Control\Session Manager\Environment
...in Path parameter. ("x" in "ControlSet00x" is a digit.)
If the Registry is backed up as part of one of your System Restore checkpoints, you can extract the backed up copy without restoring your system to a previous checkpoint! To do this:
Navigate to
C:\Windows\System32\Config. I prefer to do this in an app like Multi Commander, so as not to disturb its NTFS permissions.Right-click on
SYSTEMfile. DO NOT mistakenly right-click on SYSTEM.LOG1 or SYSTEM.LOG2Click Properties.
Go to Previous Versions tab.
Restore a previous version of this file as well as SYSTEM.LOG1 and SYSTEM.LOG2 somewhere else in your computer.
Now open
regeditand goHKEY_LOCAL_MACHINE.Select File->Load Hive...
Give the address of the extracted
SYSTEMfile and then give a hive name, likeSYSTEM-old.Now, find your
PATHvariable within this new hive.You can find it in
HKEY_LOCAL_MACHINE\SYSTEM-old\ControlSet00x\Control\Session Manager\EnvironmentOnce you are done, unmount the hive and delete the backup file
SYSTEM,SYSTEM.LOG1,SYSTEM.LOG2and several.BLFand.REGTRANS-MSfiles that Windows has made for these files.