Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Associate a File Type with a Specific Program

How do I change file association via the cmd.exe prompt?

I know this is similar to this question, but I'm only concerned with CMD.

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Tom Wijsman, Paul, Sathya Nov 28 '11 at 4:12

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Do similar questions where an answer isn't picked, qualify as an exact duplicate question? – wizlog Nov 28 '11 at 1:05
Yes, an answer doesn't have to be accepted by the OP for the question to be the same. – Paul Nov 28 '11 at 4:00
up vote 3 down vote accepted

I'm editing my answer, because you can do it. The FTYPE command, in conjunction with the ASSOC command will let you change file associations.

To find your file type associations, you use the assoc command at the command prompt. Make sure you pipe it to the more filter because the list is quite long and will scroll out of your buffer.

assoc | more

After you know how you want to change the file associations, use the ftype command:

ftype TIFImage.Document="C:\Program Files\MSPVIEW.exe" "%1"
share|improve this answer
Your saying its impossible? – wizlog Nov 28 '11 at 3:52
@wizlog no he just posted a way. And if you want to reply to somebody then you should incklude the @ and a quote, lest they delete their comment and one cannot see what you are replying to, and it appears as an apply to the answer. – barlop Sep 22 '14 at 12:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.