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

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

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

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

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

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

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

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 Windows 7. I've used it several times to fix minor stuff like the issue in this thread and it hasn't failed me yet in Windows 7. 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

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




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 11:01 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33