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 tried to alter the default path for "Program Files," but was unsuccessful, and made some other change inadvertently. Now, I cannot open regedit. The error says:

"Windows cannot find [path to regedit]".

Is there some other program I can use to change back the altered registry keys? Or is there another way to solve this problem?

(this is under Windows 7 Ultimate)

share|improve this question
1  
Can you run %SystemRoot%\system32\regedit.exe? –  grawity Dec 12 '11 at 11:26
    
@grawity: regedit.exe is not located in the system32 folder. At least not on 64 bit Windows 7 Home Premium. –  Dennis Dec 12 '11 at 11:42
    
Ah, I forgot... %SystemRoot%\regedit.exe then? –  grawity Dec 12 '11 at 11:55
    
@grawity: There is always a copy in %SystemRoot%. There is also one in %SystemRoot%\SysWOW64 on 64 bit Windows 7, so %SystemRoot%\system32 might also contain one in the 32 bit version. –  Dennis Dec 12 '11 at 12:25

2 Answers 2

There is a couple of things you could try:

  1. If you have System Restore enabled, boot from your installation disc, choose Repair your computer and pick an restore point before the changes to your registry.

  2. You should be able to open regedit by specifying the full path. Press [Windows] + R and type in C:\Windows\regedit.exe.

share|improve this answer

If you have a backup of the modified keys you can use the command line REG utility, which is built into Windows.

From an elevated command prompt:

reg import C:\mybackup.reg
share|improve this answer
    
I can't even open cmd.exe :(. (says the same thing) –  Lucas Inaktiv Benjaminsson Dec 12 '11 at 11:04
    
Try downloading this reg file to your desktop, then double click it. It may fix it. –  Andrew Lambert Dec 12 '11 at 11:10
    
It says the same thing when trying to run that file to –  Lucas Inaktiv Benjaminsson Dec 12 '11 at 11:12
    
@Amazed: Importing .reg files requires regedit... –  grawity Dec 12 '11 at 11:26
    
@grawity I believe the shell can handle it on its own. Regedit is merely the GUI for accessing the registry, not the API. Though I haven't tested this. –  Andrew Lambert Dec 13 '11 at 3:14

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.