Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Hosed up file association for .exe files!

05 Oct 2009   #1
Mark Phelps

Win7 Pro 32-bit, Win8 Pro 32-bit
 
 
Hosed up file association for .exe files!

Sorry if this is in the wrong subforum, but I didn't see a place for it ...

Was being careless (yeah, I know, STUPID of me!) and accidentally clicked on Notepad to open an .exe file. NOW, every EXE file opens in Notepad, and not surprisingly, almost nothing works. I'm posting this from a different machine.

Even safe mode offers no relief as it uses the same file associations.

I can't run any file managers or even Explorer because they're ALL .exe files.

So, is there any way from the command line to remove the association of Notepad from .exe files?


My System SpecsSystem Spec
.

05 Oct 2009   #2
zigzag3143

Win 8 Release candidate 8400
 
 

Quote   Quote: Originally Posted by Mark Phelps View Post
Sorry if this is in the wrong subforum, but I didn't see a place for it ...

Was being careless (yeah, I know, STUPID of me!) and accidentally clicked on Notepad to open an .exe file. NOW, every EXE file opens in Notepad, and not surprisingly, almost nothing works. I'm posting this from a different machine.

Even safe mode offers no relief as it uses the same file associations.

I can't run any file managers or even Explorer because they're ALL .exe files.

So, is there any way from the command line to remove the association of Notepad from .exe files?
You just need to reset the file assaociations of the exe files. look here for instructions Default File Type Associations - Restore


hope this helps

ken
My System SpecsSystem Spec
05 Oct 2009   #3
Mark Phelps

Win7 Pro 32-bit, Win8 Pro 32-bit
 
 

ken:

You're great!! I tried assoc and ftype from a command prompt, but nothing seemed to happen once I booted back into Seven desktop.

It was a bit tricky cause I haven't done command line stuff in a LONG time, but I was able to get the .reg file onto the Desktop and Merge it.

Now, I'm going through ALL the apps having to repair the Icons.

Thanks again. Saved me from having to restore from a backup.
My System SpecsSystem Spec
.


05 Oct 2009   #4
harpua

Windows 7 Ultimate x64 (Retail)
 
 

Also using system restore to restore to a point in time before you made that erroneous click would have saved you a lot of work. This is another example of the kind of thing system restore is really great at fixing. Good idea to make sure system restore is operational on your system partition for the future.
My System SpecsSystem Spec
05 Oct 2009   #5
Hakon

Windows 7 build 7600 64 bit
 
 

Also:
start > run > type in command.com and launch regedit from there

then find HKEY_CLASSES_ROOT\exefile\shell\open\command
the (Default) string value should be:
Code:
"%1" %*
My System SpecsSystem Spec
06 Oct 2009   #6
Mark Phelps

Win7 Pro 32-bit, Win8 Pro 32-bit
 
 

Quote   Quote: Originally Posted by harpua View Post
Also using system restore to restore to a point in time before you made that erroneous click would have saved you a lot of work. This is another example of the kind of thing system restore is really great at fixing. Good idea to make sure system restore is operational on your system partition for the future.
While I appreciate the suggestions, I've personally found System Restore to be a complete waste of time. The few times I needed it, it failed me.

So, instead, I do regular full-image backups. Those have ALWAYS worked when I needed them.
My System SpecsSystem Spec
06 Oct 2009   #7
harpua

Windows 7 Ultimate x64 (Retail)
 
 

I do those too. Clones as well as compressed image backups. You just reminded me it's time to do another clone.

But I don't know when you last tried system restore but it seems to be very reliable in W7. I've used it several times to fix minor stuff like the issue in this thread and it hasn't failed me yet in W7. However, I never said and most certainly do not contend that it is a substitute for a true and complete back up strategy.
My System SpecsSystem Spec
07 Oct 2009   #8
Mark Phelps

Win7 Pro 32-bit, Win8 Pro 32-bit
 
 

OK, to be fair, I haven't actually tried it in Seven, only in Vista and prior. So, it could be more reliable in Seven.
My System SpecsSystem Spec
Reply

 Hosed up file association for .exe files!




Thread Tools





Similar help and support threads
Thread Forum
Set file association for a file (dds) to Shell Common that execs it!
I accidentally set the default file format for a dds (DirectDraw Surface) to Windows shell common. It tries to execute it but obviously fails giving this error: I've tried everything. Modified registry keys, use slightly different solutions, but I just can't get it working. Does anyone have a fix...
General Discussion
File Association keeps Dropping for Karaoke files !
Heh gang... first post, after LOTS of reading ! I'm using Win 7 7127 on a tablet PC... I'm using the free program Karafun to play .CDG files... I've gone through the "Associate file type" utility, having Karafun play .CDG files... but, I'm able to play a few files, then Win 7 drops the...
General Discussion
All file associations hosed for Win7 account- system restore?
Helping a friend troubleshoot his computer and hoping for some advice - Win7 Pro 64 SP1 He has 2 accounts on his PC (administrator, and 'user'). Both have admin privileges. When he logged in this morning using his user account, the file associations for all applications appear to have been...
General Discussion
2013 preview file association issue, none of my office files are recog
Hello, I have installed 2013 preview and all has gone well. However, there is a file association issue because none of my office files are recognised. From within any of the 2013 applications I can open my files, no problem, but opening from outside word for example clicking on a word file on...
Microsoft Office
How do I change a file's file type (not only file association)?
I need to change a zip file to an epub file. I have heard this can be done, but when I add the .epub after the file name, I notice the file is still actually zip type file when I right click properties. This is causing a problem when I try to open it in in different ebook reader programs. I...
General Discussion
File association
Is there a way to correct file association problems. I've used the 'default programs' feature but it doesn't seem to solve my problem. Also can anyone tell me what "opendlg" means?
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:18.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App