Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I recently installed openssh on my Windows 7 machine. The install overwrote my Path variable and blew away all of the other paths I use in the command line. I probably have 50 paths in there and it is going to take me forever to remember them all. Is there anyway to recover this variable from before the install?

share|improve this question

1 Answer 1

Your environment is in the Registry, and may be saved as part of a system restore point. You could try reverting to the previous restore point, but it may revert more than just your install of OpenSSH (i.e., you may have to re-install other software).

share|improve this answer
7  
+1 For System Restore being the only sensible tool to use for this. Additionally I believe with System restore you can "roll forward" to a restore point after copying out the information you need so the best process may be to create a new restore point, roll back, copy the path and then roll forward again which should result in little real change to your system. –  Mokubai Aug 3 '12 at 13:55
1  
+1 for the "roll forward" suggestion. Very good idea. –  Fran Aug 3 '12 at 14:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.