Associate files without extension to a given programm or editor

(Info found on superuser.com)

In Windows 7, to associate a default program to files without extension (eg. README or INSTALL) you need to

  • open cmd.exe as administrator
  • execute the following commands:
    >assoc .="No Extension"
    >ftype "No Extension"="C:\Program Files (x86)\TextPad 4\TextPad.exe" "%1"
    >assoc "No Extension"\DefaultIcon=%SystemRoot%\System32\imageres.dll,-102
  • Obviously, adapt the path to the editor you want to use.


    Posted

    in

    by

    Tags: