|
ASSOC
Displays or modifies file name extension associations. Used
without parameters, ASSOC displays a list of all the current
file name extension associations.
Syntax
ASSOC .ext = [fileType]
ASSOC
ASSOC .ext
ASSOC .ext =
Key
.ext : The file extension
fileType : The type of file
The command ASSOC followed by just a file extension will
display the current File Type for that extension.
ASSOC without any parameters will display all the current
file associations.
ASSOC with ".ext=" will delete the association for that file
extension.
To change it back so it prompts you to specify a program
each time, just delete the association for that file type
ASSOC .ext=
[where .ext is the file extension].
Now when you double-click on a file of that type, the system
will ask you what program you want to use.
Examples
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
Cmd Commands
|