ASSOC
(from Associate)
Shows or changes file extension associations.
ASSOC [.ext[=[FileType]]]
Where:
.ext
- Specifies the file extension to associate with the file type.FileType
- Specifies the file type to associate with the file extension.
Specifying no parameters displays the current file associations. Specifying only the extension displays the associated file type. Specifying the extension followed by an equals sign =
removes the association between the specified extension and the associated file type.
Examples:
1. Associate the GntFile
file type with the .gnt
extension:
assoc .gnt=GntFile
2. Show the file type associated with the .txt
extension:
assoc .txt
3. Show all extensions associated with file types:
assoc
4. Dissociate the .doc
extension from the Word.Document.X
file type:
assoc .doc=
Comments