How To Be Mastering Command Prompt #3 ASSOC









ASSOC is a command in cmd.exe (command prompt) to display or modifies file extention associations..

Here's the formula for use ASSOC:


ASSOC [.ext[=[filetype]]]

Description:

[.exe]   The file extention
Filetype Specifies the filetype to associate with the file extention

For example to use ASSOC:


1. Display the file extention with its association -->  assoc

Picture 1. ASSOC and press Enter

2. Display the specific extention -->  assoc .txt

    Picture 2. Assoc .txt
    3. Set the extention like .abc with association abc_file  assoc .abc=abc_file

    Picture 3. Set the extention with the association

    Note:

    If the error show like “Access denied”, so you must run cmd in administrator mode. Click Start button --> All Programs -->  accessoriess --> right click command prompt and select run as administrator.









    No comments:

    Post a Comment