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.

link|improve this question

80% accept rate
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
feedback

closed as exact duplicate by techie007, Tom Wijsman, Paul, Sathya Nov 28 '11 at 4:12

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

up vote 0 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"
link|improve this answer
Your saying its impossible? – wizlog Nov 28 '11 at 3:52
feedback

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