Dos Prompt Home Page Command Prompt Reference
ASSOC

Displays or modifies file extension associations

ASSOC [.ext[=[fileType]]]

.ext         Specifies the file extension to associate the file type with
fileType  Specifies the file type to associate with the file extension

Type ASSOC without parameters to display the current file associations.

If ASSOC is invoked with just a file extension, it displays the current file association for that file extension. Specify nothing for the file type and the command will delete the association for the file extension.

For the list of file extensions currently configured, see FTYPE.

Examples

Display Current File Extension

assoc .doc
.doc=Word.Document.8

Remove Current File Extension

assoc .doc=

Associate New File Extension

assoc .txt=Word.Document.8

Related Commands

FTYPE

 

Top of the Page - Command Prompt Reference Home Page
Last Page Update: 08/03/2012

© Sembee Ltd. 1998 - 2024.

Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions.

All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned within and is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.

Sembee Ltd. is registered in England and Wales at 1 Carnegie Road, Newbury, Berkshire, RG14 5DJ.
Registered company number: 4704428. VAT Number GB 904 5603 43.

Server 1