Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Normally when I type regedit in Start/Run the Registry Editor opens, but for some strange reason that stopped working today. Now I have to type regedit.exe to get it to open. If I just type regedit, I get a message saying "Windows cannot open this file" "To open this file, Windows needs to know what program created it. Windows can go online to look it up automatically, or you could manually select from a list of programs on your computer" etc. Can someone please help me fix this problem? I want the Registry Editor to open like it used to (by just typing regedit instead of regedit.exe).

Check your Shell-extentions.
Cut--------*.reg-----
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\regedit]
@="Registration Entries"[HKEY_CLASSES_ROOT\regedit\shell]
[HKEY_CLASSES_ROOT\regedit\shell\open]
[HKEY_CLASSES_ROOT\regedit\shell\open\command]
@="regedit.exe %1"-------End-------
If you manually edit your registry the key is a default REG_SZ with value "regedit.exe %1" (leave the "" out)
Hope this solves it.

Forget about my last post, lol. I'm half asleep, and thought you were talking about something else.
The shell extensions are fine, any other suggestions?

I wouldn't know how one should do this the 'normal way'.
So I just tried to find a way you could alias any program you would like.
Here it goes:
'openalias2' is the alias that will start your proggry in start->run, ofcourseYou might need to change pathnames, and change the openmyalias2 alias.
Cut-----openmyalias2.reg-----
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\openmyalias2\Shell\Open\Command]
@="\"F:\\windows\\ServicePackFiles\\i386\\regedit\" %1"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\openmyalias2\Shell\Open\Command]
@="\"F:\\windows\\ServicePackFiles\\i386\\regedit\" %1"[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\openmyalias2.exe]
@="F:\\windows\\ServicePackFiles\\i386\\regedit.exe"
"Path"="F:\\windows\\ServicePackFiles\\i386\\"----------END-------------
This works on my XP box and will run regedit by typing 'openmyalias2'
Have fun

Thanks for your help, but I finally fixed the problem! I did a Search for regedit on my system, and found numerous copies of regedit.exe (all having 0 bytes). I deleted these files, and now the Registry Editor opens when I type regedit in the Start/Run box :)

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |