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?


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:
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.
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:
Environment Variables in Windows XP
BrianMc1958Author Commented:
All Courses

From novice to tech pro — start learning today.