assoc

Windows CMD · Files · available in the simulator

What it does

Displays or modifies file extension associations.

Syntax

assoc [.extensión[=[tipo_de_archivo]]]

Options and parameters

  • .EXT

    displays association for an extension

  • .EXT=TIPO

    associates a file type with the extension

  • .ext

    Displays the current association for the specified extension.

    assoc .txt
  • .ext=tipo

    Associates a file type with the extension.

    assoc .log=txtfile

Usage examples

  • assoc
  • assoc .txt
  • assoc .txt=txtfile
  • assoc .abc=MiTipo
  • assoc .log=txtfile

Notes and common mistakes

  • Without arguments, displays all associations. Modifying associations requires administrative privileges.
Practise assoc

Related commands