7

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.

wizlog
  • 13,335
  • 1
    Do similar questions where an answer isn't picked, qualify as an exact duplicate question? – wizlog Nov 28 '11 at 01: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 04:00

1 Answers1

9

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"
Keltari
  • 73,243