Windows Command: ftype

While on the MS newsgroups, I read about a funky little command line utility that i’d never heard of.

According to Microsoft, ftype:

“Displays or modifies file types used in file extension associations”

You can list all your associations by simply typing ‘ftype’ at the command line.

On the newsgroups, someone was having issues with the program used to open ‘mailto:’ links, so to check that you type:

cmd> ftype | find /i "mailto"

Which results in:

cmd> mailto="C:PROGRA~1MICROS~3OFFICE11OUTLOOK.EXE" -c IPM.Note /m "%1"

I used it to set my default .txt file reader to ConTEXT:

cmd> ftype txtfile=C:Program FilesConTEXTConTEXT.exe "%1"

Could be handy in a logon script one day.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s