How to recover deleted PATH variable in XP?

Dear Experts,

I just did a very bad thing.  I accidentally deleted my entire PATH variable, and then rebooted my machine.  I'm on XP.  I've tried system restore, and it's not working.

Is there any way I can recover?  Does XP stash a copy of the PATH variable somewhere?

HELP!

Thanks,
BrianMc1958
BrianMc1958Asked:
Who is Participating?
 
oBdAConnect With a Mentor Commented:
Start regedit, check for the "Path" value in HKLM\System\ControlSet<xx>\Control\Session Manager\Environment; replace <xx> with all numbered ControlSet entries that are present (no need to check CurrentControlSet, it's one of the ControlSetxx keys, and you won't find anything under there.).
These are the "Last Know Good" configurations; if you're lucky, there's still one left that has a path variable.
If not, the bare minimum required is this:
C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
0
 
Jonez176Connect With a Mentor Commented:
Did you delete the path variable from the User variables or System variables?

Try a returning to a system restore point.
0
 
LeeTutorConnect With a Mentor retiredCommented:
The PATH environment variable is stored in the registry by XP, but if you rebooted the system after deleting the PATH, then I would expect it to be gone there too.  See this page for the info:

http://vlaurie.com/computers2/Articles/environment.htm
Environment Variables in Windows XP
0
 
BrianMc1958Author Commented:
Thanks!
0
All Courses

From novice to tech pro — start learning today.