Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page



 

Microsoft DOS assoc command

Quick links

About assoc
Availability
Attrib syntax
Examples

About assoc

The assoc command displays the file association for each of the different file extensions on the computer.

Additional information and help with computer file extensions can also be found on our file extensions page.

Availability

The assoc command is an internal command that is available in the below Microsoft operating systems.

Windows 2000
Windows XP
Windows Vista
Windows 7

 

Index

Category:
MS-DOS

Companies:
Microsoft

Related Pages:
Operating systems

Resolved

Were you able to locate the answer to your questions?

Syntax

Displays or modifies file extension associations

ASSOC [.ext[=[fileType]]]

.extSpecifies the file extension to associate the file type with
fileTypeSpecifies 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.

Examples

assoc

Displays a file association of each of the file extensions on the computer.

assoc .txt

Displays the file extension for a .txt file as shown below.

.txt=txtfile

Home - Computer help - Contact - Site Map - About Us
Link to Computer Hope - Bookmark Computer Hope