AssocDisplays or modifies file name extension associations. Used without parameters, assoc displays a list of all the current file name extension associations. Syntaxassoc [.ext[=[filetype]]] Parameters.ext : Specifies the file name extension. filetype : Specifies the file type with which you want to associate the specified file name extension. /? : Displays help at the command prompt. Remarks
ExamplesTo 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 Formatting legend
Using command redirection operators |