Situatie
Assoc is command (internal) found inside Windows Command Processor Command Prompt, that allows for file extension to file type association. A file extension is generally last few characters in File Name after period (“.”). Though it is not mandatory for file to have an extension at all (in case of extension-less files).
Extension to file type association is enforced predominantly by Windows OS. Other Operating Systems such as Linux and macOS does support such association but don’t enforce them to levels of Windows.
Solutie
Pasi de urmat
ASSOC [.ext[=[fileType]]] .ext Specifies file extension to associate file type with fileType Specifies file type to associate with file extension
Type ASSOC without parameters to display current file associations. If ASSOC is invoked with just file extension, it displays current file association for that file extension. Specify nothing for file type and command will delete association for file extension.
Using the Command :
Displaying the list of every extension to file type association. To display list, execute following command in cmd.
Assoc :
After the execution, an output appears as such.
.001=WinRAR .386=vxdfile .3ds=Photoshop.3DSFileType.130 .3g2=WMP11.AssocFile.3G2 .3ga=VLC.3ga .3gp=WMP11.AssocFile.3GP .3gp2=WMP11.AssocFile.3G2 .3gpp=WMP11.AssocFile.3GP .669=VLC.669 .7z=WinRAR .8ba=Photoshop.PlugIn .8bc=Photoshop.PlugIn
Displaying file type association of single file extension :
To display association, run following command.
assoc ext
where ext is file extension we are wanting to get information about.
Example :
To get association information about the .jpg file extension
assoc .jpg
Output :
.jpg=jpegfile
Leave A Comment?