Hosed up file association for .exe files!

Mark Phelps

New member
Guru
VIP
Local time
2:13 PM
Messages
1,379
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Win7 Pro 32-bit, Win8 Pro 32-bit
CPU
AMD Phenom II X6 1090T
Motherboard
Gigabyte
Memory
4GB ddr3 1300
Graphics Card(s)
AMD HD 4290 onboard
Sound Card
Builtin Realtek HD Audio
Monitor(s) Displays
Samsung 24" widescreen, LG 23" widescreen
Screen Resolution
1920x1200/1920x1080
Hard Drives
Kingston 256GB SSD
Keyboard
Logitech Illuminated Keyboard
Mouse
Logitech M705 wireless mouse
Antivirus
Norton Av 2013
Browser
IE v10
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 http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html?ltr=D


hope this helps

ken
 

My Computer My Computer

Computer Manufacturer/Model Number
HP Pavillion dv-7 1005 Tx
OS
Win 8 Release candidate 8400
CPU
[email protected]
Memory
4 gigs
Graphics Card(s)
Nvidia 9600M
Sound Card
HD built-in
Monitor(s) Displays
17" Wxga
Screen Resolution
1440x900
Cooling
none
Internet Speed
45Mb down 5Mb up
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Win7 Pro 32-bit, Win8 Pro 32-bit
CPU
AMD Phenom II X6 1090T
Motherboard
Gigabyte
Memory
4GB ddr3 1300
Graphics Card(s)
AMD HD 4290 onboard
Sound Card
Builtin Realtek HD Audio
Monitor(s) Displays
Samsung 24" widescreen, LG 23" widescreen
Screen Resolution
1920x1200/1920x1080
Hard Drives
Kingston 256GB SSD
Keyboard
Logitech Illuminated Keyboard
Mouse
Logitech M705 wireless mouse
Antivirus
Norton Av 2013
Browser
IE v10
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 Computer My Computer

Computer Manufacturer/Model Number
HP DV8t quad
OS
Windows 7 Ultimate x64 (Retail)
CPU
i7-Q 720
Motherboard
Motherboard Chipset Intel Ibex Peak-M PM55, Intel Lynnfield
Memory
6 GB
Graphics Card(s)
nVidia GeForce GT 230M (1GB)
Sound Card
IDT High Definition Audio CODEC
Monitor(s) Displays
18.4 inch HP Infinity FHD (Samsung 184HT03-001)
Screen Resolution
1920 x 1080
Hard Drives
Hitachi 500GB 7200 rpm (x2)
Seagate FreeAgent 1.5 TB External USB (x2)
Thermaltake BlacX eSATA/USB 2.0 3.5/2.5 HD dock
Cooling
Zalman NC-2000 notebook cooling pad
Keyboard
laptop
Mouse
Logitech VX Revolution
Other Info
Backup Unit: Lenovo T61p
Also:
start > run > type in command.com and launch regedit from there :p

then find HKEY_CLASSES_ROOT\exefile\shell\open\command
the (Default) string value should be:
Code:
"%1" %*
 

My Computer My Computer

Computer Manufacturer/Model Number
Custom
OS
Windows 7 build 7600 64 bit
CPU
Phenom II X4 955 retail 3.2GHz
Motherboard
ASRock M3A790GXH/USB3 ATX AMD AMD3
Memory
4x GeiL 2GB Value PC3-10660 CL9 DC DDR3-1333, CL 9-9-9-28
Graphics Card(s)
PowerColor Radeon HD5850 PCS+ 1024MB, 256-bit GDDR5
Sound Card
Built in
Hard Drives
G.Skill Phoenix Pro 120GB SATA2 SSD Sandforce SF-120
Samsung Spinpoint 500GB SATA2 7200RPM
PSU
Tacens Radix III Smart 520W
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Win7 Pro 32-bit, Win8 Pro 32-bit
CPU
AMD Phenom II X6 1090T
Motherboard
Gigabyte
Memory
4GB ddr3 1300
Graphics Card(s)
AMD HD 4290 onboard
Sound Card
Builtin Realtek HD Audio
Monitor(s) Displays
Samsung 24" widescreen, LG 23" widescreen
Screen Resolution
1920x1200/1920x1080
Hard Drives
Kingston 256GB SSD
Keyboard
Logitech Illuminated Keyboard
Mouse
Logitech M705 wireless mouse
Antivirus
Norton Av 2013
Browser
IE v10
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 Computer My Computer

Computer Manufacturer/Model Number
HP DV8t quad
OS
Windows 7 Ultimate x64 (Retail)
CPU
i7-Q 720
Motherboard
Motherboard Chipset Intel Ibex Peak-M PM55, Intel Lynnfield
Memory
6 GB
Graphics Card(s)
nVidia GeForce GT 230M (1GB)
Sound Card
IDT High Definition Audio CODEC
Monitor(s) Displays
18.4 inch HP Infinity FHD (Samsung 184HT03-001)
Screen Resolution
1920 x 1080
Hard Drives
Hitachi 500GB 7200 rpm (x2)
Seagate FreeAgent 1.5 TB External USB (x2)
Thermaltake BlacX eSATA/USB 2.0 3.5/2.5 HD dock
Cooling
Zalman NC-2000 notebook cooling pad
Keyboard
laptop
Mouse
Logitech VX Revolution
Other Info
Backup Unit: Lenovo T61p
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 Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Win7 Pro 32-bit, Win8 Pro 32-bit
CPU
AMD Phenom II X6 1090T
Motherboard
Gigabyte
Memory
4GB ddr3 1300
Graphics Card(s)
AMD HD 4290 onboard
Sound Card
Builtin Realtek HD Audio
Monitor(s) Displays
Samsung 24" widescreen, LG 23" widescreen
Screen Resolution
1920x1200/1920x1080
Hard Drives
Kingston 256GB SSD
Keyboard
Logitech Illuminated Keyboard
Mouse
Logitech M705 wireless mouse
Antivirus
Norton Av 2013
Browser
IE v10
Back
Top