473,383 Members | 1,868 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes and contribute your articles to a community of 473,383 developers and data experts.

Deleting file type associations under Windows Vista WITHOUT extra software

Nepomuk
3,112 Expert 2GB
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.
Jul 28 '09 #1
2 4491
Open explore window and -> FolderOption->View->in that uncheck Hide extentions for known file type->apply and then OK

Now your files can be seen with thier extension now you can rename it.

revert back to previous setting to check hide extension for known filetype
hope you its help full to you
Jul 31 '09 #2
Nepomuk
3,112 Expert 2GB
That's how to change the file type extension, not it's association. But thanks for mentioning it. ^^

Greetings,
Nepomuk
Aug 5 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Eric | last post by:
I want to use embedded icon resources for my file type associations, but only the app.ico seems to show up when I go to choose the icons in the setup File Types editor. The same thing when I try...
1
by: john | last post by:
I have an exe console app that i wrote, which works on custom data files. I'd like to give these data files a custom extension and somehow register that file extension with my exe, so all i have to...
6
by: Martin Bischoff | last post by:
Hi, I'm creating temporary directories in my web app (e.g. ~/data/temp/temp123) to allow users to upload files. When I later delete these directories (from the code behind), the application...
1
by: iwdu15 | last post by:
hi, how can i get the icon associated with a certain file type? thanks -- -iwdu15
13
by: James Reid | last post by:
I'm looking for the source code for a DOS command line c/c++ program that can change file associations. In other words it can cause any version of Windows to associate a particular .exe file with a...
28
by: Tim Daneliuk | last post by:
I have a program wherein I want one behavior when a file is set as executable and a different behavior if it is not. Is there a simple way to determine whether a given named file is executable...
5
by: =?Utf-8?B?Qkw=?= | last post by:
Hello friends In c# 2005 I have written a function to access "font file name" by "Font name" and it is working fine in all the windows version other than vista, in vista it is throughing an...
7
by: =?Utf-8?B?UGFycm90?= | last post by:
I am receiving a "file is being used by another process" error message whenever I try to access a text file that I had previously created and then closed. This only happens when I test in a...
65
by: Hongyu | last post by:
Dear all: I am trying to write to a file with full directory name and file name specified (./outdir/mytestout.txt where . is the current directory) in C programming language and under Unix, but...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.