Windows cannot find C:\Windows\regedit.exe

ssonti

Reputable
Jun 5, 2015
1
0
4,510
Hello.
After setting up my new computer and installing the new SSD, i stumbled across a problem. Whenever i would download or install something, it would install onto the SSD because it was listed as C, the main hard drive. (Meaning C:\Programm Files was on C, the SSD). I googled and found a tutorial, which told me to open up regedit and look for something, i sadly forgot what exactly it was. I think it was just the programm files thing, which i was supposed to change from C to E, my HDD. I did so.

However, when i tried running regedit again i got the error mentioned above. How can i reverse what i did? I cannot acces regedit anymore. I tried running it from the folder as administrator. I also tried creating Programm Files on the HDD and copy regedit into it and run it from there, that didnt work either.

The exact error message is the following: "Windows cannot find C:\Windows\regedit.exe. Make sure you typed the name correctly, and then try again."

How can i reverse what i did, and how do i properly change it so my HDD is the main hard drive to safe/install stuff on? Thanks in advance.

Edit: I belive these are the steps i followed:
To change the registry, follow these 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.
 
Solution
In an admin cmd window, or at the Run text box, try this:
E:\Windows\regedit.exe

Since E is apparently where it thinks it is.

And then CHANGE IT BACK!
Trying to force everything to be on a different drive is a trail of tears.

For applications, just choose what drive you want them on
Games? The Steam and Origin clients have built in functionality to other locations.

For everything else, see this:

Win 7 8: http://www.tomshardware.com/faq/id-1834397/ssd-redirecting-static-files.html
Win 8.1: http://www.tomshardware.com/faq/id-2024314/windows-redirecting-folders-drives.html

USAFRet

Titan
Moderator
In an admin cmd window, or at the Run text box, try this:
E:\Windows\regedit.exe

Since E is apparently where it thinks it is.

And then CHANGE IT BACK!
Trying to force everything to be on a different drive is a trail of tears.

For applications, just choose what drive you want them on
Games? The Steam and Origin clients have built in functionality to other locations.

For everything else, see this:

Win 7 8: http://www.tomshardware.com/faq/id-1834397/ssd-redirecting-static-files.html
Win 8.1: http://www.tomshardware.com/faq/id-2024314/windows-redirecting-folders-drives.html
 
Solution