My notepad file extension associations list/batch script, any suggestions?

Discussion in 'Scripting' started by pjoter, Nov 15, 2014.

  1. pjoter

    pjoter MDL Novice

    Nov 2, 2014
    49
    29
    0
    #1 pjoter, Nov 15, 2014
    Last edited by a moderator: Apr 20, 2017
    Here is the content of my assoc.bat, it's a quick & easy way to associate file types "to open with" Notepad.
    Any comments or suggestions? Should any extensions be added or removed? How do you do it? Thanks!

    Code:
    assoc .adr=txtfile
    assoc .asm=txtfile
    assoc .asp=txtfile
    assoc .aut=txtfile
    assoc .bas=txtfile
    assoc .bak=txtfile
    assoc .bsh=txtfile
    assoc .build=txtfile
    assoc .c=txtfile
    assoc .cgi=txtfile
    assoc .cf=txtfile
    assoc .cfg=txtfile
    assoc .clips=txtfile
    assoc .cls=txtfile
    assoc .ctl=txtfile
    assoc .conf=txtfile
    assoc .config=txtfile
    assoc .configure=txtfile
    assoc .cpp=txtfile
    assoc .cs=txtfile
    assoc .css=txtfile
    assoc .csproj=txtfile
    assoc .cxx=txtfile
    assoc .d=txtfile
    assoc .def=txtfile
    assoc .dfm=txtfile
    assoc .di=txtfile
    assoc .diff=txtfile
    assoc .diz=txtfile
    assoc .dob=txtfile
    assoc .dpr=txtfile
    assoc .dsm=txtfile
    assoc .dsr=txtfile
    assoc .dtd=txtfile
    assoc .frm=txtfile
    assoc .f90=txtfile
    assoc .f95=txtfile
    assoc .f2k=txtfile
    assoc .f=txtfile
    assoc .for=txtfile
    assoc .gsc=txtfile
    assoc .h=txtfile
    assoc .hpp=txtfile
    assoc .idl=txtfile
    assoc .iss=txtfile
    assoc .java=txtfile
    assoc .js=txtfile
    assoc .lisp=txtfile
    assoc .log=txtfile
    assoc .lsp=txtfile
    assoc .lua=txtfile
    assoc .makefile=txtfile
    assoc .menu=txtfile
    assoc .me=txtfile
    assoc .nfo=txtfile
    assoc .pag=txtfile
    assoc .pas=txtfile
    assoc .php=txtfile
    assoc .pl=txtfile
    assoc .pm=txtfile
    assoc .pnpt=txtfile
    assoc .pnproj=txtfile
    assoc .pod=txtfile
    assoc .proj=txtfile
    assoc .properties=txtfile
    assoc .ps1=txtfile
    assoc .py=txtfile
    assoc .pyw=txtfile
    assoc .rb=txtfile
    assoc .rng=txtfile
    assoc .s=txtfile
    assoc .s90=txtfile
    assoc .scheme=txtfile
    assoc .schemedef=txtfile
    assoc .scm=txtfile
    assoc .sh=txtfile
    assoc .sln=txtfile
    assoc .smd=txtfile
    assoc .sql=txtfile
    assoc .ss=txtfile
    assoc .sty=txtfile
    assoc .tcl=txtfile
    assoc .tex=txtfile
    assoc .text=txtfile
    assoc .txt=txtfile
    assoc .xaml=txtfile
    assoc .xml=txtfile
    assoc .xsd=txtfile
    assoc .xsl=txtfile
    assoc .xul=txtfile
    assoc .win=txtfile