Recently, I found that I had associated a file type to notepad by mistake. This file type (let's just say, it has the extension
.xyz) wasn't supposed to be opened by notepad - actually, it wasn't supposed to be opened by anything at all. However, when I tried to remove the file type association like I could in previous versions of Windows, I found that I was meeting a dead end. I could
change the program, no problem at all, but
removing it seemed impossible. So, I tried a few things and this is what I came up with:
This the method is, I must admit, a bit cheeky. But it works, so who cares? ;-)
First of all, open
notepad. You'll have an empty file. Save this empty file as
nothing.exe, choosing
All Files (*.*) under the
Save as type: option. Choose any place you'll remember and that you have writing access to, it doesn't matter as we'll delete it later anyway.
Next, we'll need to change the settings for this file type. There are two ways to do that. Either:
Find a xyz-file somewhere
-> do a right click on it
-> choose Properties
-> click on the Change button behind Opens with:
or:
Go to the Start-menu
-> click Default Programs
-> choose Associate a file type or protocol with a program
-> find and left click on the extension / association you're trying to delete
-> click Change program
In either case, you'll have the option to change the program to open this file type with. So, click on
Browse, select the
nothing.exe file you created earlier, click
Open and then
OK. Now delete the
nothing.exe file. You're done.
Now, for those who were thinking of the commands
assoc and
ftype - they don't do the job. Vista (and maybe previous versions of Windows too, I don't know) seems to have separate ways of registering the associations registered with them and via the GUI. If anyone can enlighten me on this issue, they are welcome to do so.