Friday, April 27, 2012

Assoc - Dos Command :

This command displays or modifies file type extensions associations.
It supports on Windows 2000, Windows XP, Windows Vista, Windows 7.
To view 'assoc' command with its all possible parameters you can use following command. Its like help information to regarding that command.
assoc/?
Commands can be run using Microsoft Windows XP Command Prompt (cmd.exe)
Syntax :
ASSOC [.ext [=[filetype]]]

where,

.ext : It specifies file extension to associate the file type with.
filetype : It specifies file type to associate with the file extension.

Use 1:

assoc
'assoc' command without parameters displays the current all file associations.

Use 2:

assoc .doc
assoc .exe
assoc .htm

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

Output :


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

D:\DINESH > assoc .doc
.doc=Word.Document.8

D:\DINESH > assoc .exe
.exe=exefile

D:\DINESH > assoc .htm
.htm=htmlfile

D:\DINESH > _

No comments:

Post a Comment