Windows Guides Feed

New to using the command prompt? Check out the Windows Command Prompt Beginner’s Guide

Windows Guides subscriber, Engineer, submitted the following guide and shows us how to change file associations using the command prompt:

Dear colleagues, many of us get problems when your registry gets corrupted or settings get changed and you have mixed up extensions associated with the wrong programs. Well, don’t panic–everything is easy, we are here to raise and offer up solution to make your life easy. I will explain how to disassociate a file that has been wrongly associated with the wrong program:

Modify Program Associations with the Command Prompt

  1. Click the Start button and click Run.
  2. In the run dialog, type cmd then press CTRL+Shift+Enter (this will allow you to Run commands as an Administrator.)
  3. On the command line, type assoc .ext=. (replace .ext with the extension you want to disassociate. I.e. if . RAR files are associated with a wrong program, then type assoc .rar=.)
  4. Press enter to disassociate the rar extension and then associate it with another program by double clicking the file and choosing a new default program.

Completely Remove a Program from Opening All Associated File Types

Well, you might ask your self, why would you go all this way while you can simply right click and choose another program to associate? This is ok, but I have seen many cases where if you do so you will end up with a corrupted icon cache and the icon of the file goes weird. Then we have to clear the default program that opens wrongly by the following steps:

  1. Click the Start button and click Run.
  2. In the run dialog, type cmd then press CTRL+Shift+Enter (this will allow you to Run commands as an Administrator.)
  3. On the command line, type ftype FileType=. (FileType with the real name for the file type associated to the file extension to be removed from the system. I.e. for WinRAR, type ftype WinRAR=.

How about it? I have  a lot of solutions to problems I faced and never found the solution through out the www, I found it by experience and night after night fighting…



About Rich

Rich is the owner and creator of Windows Guides; he spends his time breaking things on his PC so he can write how-to guides to fix the problems he creates.

Free PC tips by email

Search Windows Guides




Comments

4 thoughts on “Correct Program Associations Using the Command Prompt [How To]”

  1. core2extrem says:

    Thank you my friend for the post, I really appreciate that

  2. core2extrem says:

    Thank you my friend for the post, I really appreciate that

  3. Chanti says:

    Thanks friend…..

  4. Sumit sehgal says:

    thank you.
    it was really helpfull.

Comments are closed.


Computer tips in your inbox
Sign up for the Windows Guides newsletter to get PC tips and access to free Windows books (More details)

Enter your email address:
 

Popular Guides

See which sites have been visited on your PC (even if private browsing mode is used)

Create a Windows 7 System Repair Disc

Best Free Anti-malware

Hibernate vs. Sleep vs. Shut-Down

i3, i5, and i7; Dual, Quad, Hexa Core Processors. How to they Differ?

Intel's Ivy Bridge Processor: new Features

Submit Your Tip
Submit your computer tip to us; receive full credit for all published tips

Windows Guides on Facebook