The assoc in Windows command
The assoc command is used to display or modify the file name extension links. If used without parameters, the assoc command will display a list of all the links that extend the current file name.
The assoc command is used to display or modify the file name extension links. If used without parameters, the assoc command will display a list of all the links that extend the current file name.
Note: This command is only supported in CMD.EXE and not available from PowerShell.
For an example of how to use this command, see Example .
Syntax
assoc [[= []]]
Parameters
ParametersDescription Specifies the file name extension. Specify the file type to associate with the specified file name extension. /? Show help at the command prompt.Note
- To remove the file type link for the file name extension, add a space after the = sign by pressing the spacebar.
- To see the current file types that define the open command string, use the ftype command .
- To redirect the result of assoc command to a text file, use the redirect operator > .
For example
To see the current file type link for the .txt file name extension, enter:
.txt assoc
To remove the file type link for the .bak file name extension, enter:
assoc .bak =
Note : Remember to add a space after the = sign.
To see the results of assoc links for one screen at a time, enter:
assoc | more
To send the results of the assoc command to the assoc.txt file , enter:
assoc> assoc.txt
See more:
- 34 common shortcuts on Windows Command Prompt
- ARP and the working principle in LAN
- The commands run the application available in Windows
4 ★ | 2 Vote
You should read it
- Del command in Windows
- Set command in Windows
- Ftype command in Windows
- Command at in Windows
- Reg command copy in Windows
- Cmd command in Windows
- Fc command in Windows
- The command reg add in Windows
- Rem command in Windows
- The echo command in Windows
- Sub-commands in nslookup Windows command (Part 2)
- Sub-commands in the nslookup Windows command (Part 1)
Maybe you are interested
9 ways to fix the error of not being able to save files as JPEG or PNG in Photoshop
Download standard and beautiful Word file experience initiative cover template
How to use the file search command on Windows, find saved files
How to split sheet into multiple separate Excel files
How to merge PDF files, merge and join multiple PDF files into a single file
How to clean up iPhone junk, delete junk files to free up iPhone storage