Exportovat (0) Tisk
Rozbalit vše

Assoc

Aktualizováno: duben 2012

Rozsah platnosti: Windows Server 2008, Windows Vista

Displays or modifies file name extension associations. If used without parameters, assoc displays a list of all the current file name extension associations.

For examples of how to use this command, see Examples.

assoc [<.ext>[=[<FileType>]]]

 

Parameter Description

<.ext>

Specifies the file name extension.

<FileType>

Specifies the file type to associate with the specified file name extension.

/?

Displays help at the command prompt.

  • To remove the file type association for a file name extension, add a white space after the equal sign by pressing the SPACEBAR.

  • To view current file types that have open command strings defined, use the ftype command.

  • To redirect the output of assoc to a text file, use the > redirection operator.

To view the current file type association for the file name extension .txt, type:

assoc .txt

To remove the file type association for the file name extension .bak, type:

assoc .bak= 
notePoznámka
Be sure to add a space after the equal sign.

To view the output of assoc one screen at a time, type:

assoc | more

To send the output of assoc to the file assoc.txt, type:

assoc>assoc.txt

Byl tento obsah pro vás užitečný?
(Zbývající počet znaků: 1500)
Děkujeme za váš názor.

Obsah vytvořený komunitou

Zobrazit:
© 2015 Microsoft