Share via

Not able to open regedit.exe

Anonymous
2020-05-05T12:59:20+00:00

In windows 7 actually i tried to change default installation location so that i have done the following steps 

1.    Start Registry Editor by entering “Regedit” in the search All programs.

2.    Locate the following:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

3.    Right click on the value named ProgramFilesDir & change the default value C:\Program Files to the path you want to install all your programs in.

4.    Click OK and Exit.

changed my disk C: to F:

and after restarting my machine when i tried to open regedit.exe  it shows as "*windows cannot find'C:\windows\regedit.exe'.*Make sure you typed the name correctly, and then try again." and also when i try to open applications through administrator  it  popups the  same  as windows cannot find. How can i revert it? please help with this.

Windows for home | Previous Windows versions | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2020-05-05T14:46:05+00:00

    I would not change the default installation location for programs. There are better ways in case you're running out of disk space.

    Does the file C:\Windows\regedit.exe exist?

    You can reverse your changes with System Restore (rstrui.exe).

    1 person found this answer helpful.
    0 comments No comments
  2. LemP 74,925 Reputation points Volunteer Moderator
    2020-05-05T21:14:42+00:00

    Experimenting with the Windows Registry is risky business, especially if you don't create a backup and/or system restore point first.  You can easily turn your computer into a brick.

    Does "changed my disk C: to F:" mean that you made that change at the registry location mentioned in step 3 or did you make that change elsewhere?  If elsewhere, where did you make that change?

    It sounds as if you are able to get into Windows. 

    • What happens if you click Start, type C:\Windows into the Search box, and press Enter?
    • What happens if you click Start, type F:\Windows into the Search box, and press Enter?
    0 comments No comments