Displays or modifies file name extension associations. Used without parameters, assoc displays a list of all the current file name extension associations.
assoc [.ext[=[FileType]]]
| • | To delete the file type association for a file name extension, create a white space after the equal sign by pressing the SPACEBAR. |
| • | To view current file types that have open command strings defined, use the ftype command. |
| • | To redirect the output of assoc to a text file, use the > redirection operator. |
To view the current file type association for the file name extension .txt, type:
assoc .txt
To delete the file type association for the file name extension .txt, type:
assoc .txt=
To view current file type associations one screen at a time, type:
assoc| more
To send the output of assoc to the file Assoc.cfg, type:
assoc>assoc.cfg
| Format | Meaning |
Italic | Information that the user must supply |
Bold | Elements that the user must type exactly as shown |
Ellipsis (...) | Parameter that can be repeated several times in a command line |
Between brackets ([]) | Optional items |
Between braces ({}); choices separated by pipe (|). Example: {even|odd} | Set of choices from which the user must choose only one |
Courier font | Code or program output |
| InitWizard("a5d1cd43-bc92-43db-80af-ffa3a850de3d1033"); |