assoc
- help assoc
Output:
ファイル拡張子の関連付けを表示または変更します。
ASSOC [.拡張子[=[ファイル タイプ]]]
.拡張子 ファイル タイプに関連付ける拡張子を指定します。
ファイル タイプ 拡張子に関連付けるファイル タイプを指定します。
パラメーターを指定しないで「ASSOC」と入力すると、現在のファイルの関連付け
を表示します。ファイル拡張子を指定して ASSOC を実行すると、そのファイル
拡張子の現在のファイルの関連付けを表示します。ファイル タイプやコマンド
を指定しないと、そのファイル拡張子の関連付けを削除します。
Displays or modifies file extension associations
ASSOC [.ext[=[fileType]]]
.ext Specifies the file extension to associate the file type with
fileType Specifies the file type to associate with the file extension
Type ASSOC without parameters to display the current file associations.
If ASSOC is invoked with just a file extension, it displays the current
file association for that file extension. Specify nothing for the file
type and the command will delete the association for the file extension.
Return Code: 1
example1
管理者権限(Administrator)
example2
c:\example>assoc .rtf=txtfile
アクセスが拒否されました。
処理中にエラーが発生しました: .rtf
c:\example>assoc .rtf=
アクセスが拒否されました。
c:\example>assoc .rtf
.rtf=rtffile
c:\example>assoc
.386=vxdfile
.3g2=WMP11.AssocFile.3G2
.3gp=WMP11.AssocFile.3GP
.3gp2=WMP11.AssocFile.3G2
.3gpp=WMP11.AssocFile.3GP
.AAC=WMP11.AssocFile.ADTS
.accountpicture-ms=accountpicturefile
.ADT=WMP11.AssocFile.ADTS
.ADTS=WMP11.AssocFile.ADTS
.aif=WMP11.AssocFile.AIFF
.aifc=WMP11.AssocFile.AIFF
.aiff=WMP11.AssocFile.AIFF
.ani=anifile
.appcontent-ms=ApplicationContent
.application=Application.Manifest
.appref-ms=Application.Reference
.asa=aspfile
.asf=WMP11.AssocFile.ASF
.asp=aspfile
.asx=WMP11.AssocFile.ASX
.au=WMP11.AssocFile.AU
.avi=WMP11.AssocFile.AVI
.bat=batfile
.blg=Diagnostic.Perfmon.Document
.bmp=Paint.Picture
.cab=CABFolder
.camp=campfile
.cat=CATFile
.cda=WMP11.AssocFile.CDA
.cdmp=cdmpfile
.cdx=aspfile
.cdxml=Microsoft.PowerShellCmdletDefinitionXML.1
.cer=CERFile
.chk=chkfile
.chm=chm.file
.cmd=cmdfile
.com=comfile
.compositefont=Windows.CompositeFont
.cpl=cplfile
.crl=CRLFile
.crt=CERFile
.css=CSSfile
.cur=curfile
.db=dbfile
.dctx=IMEDictionaryCompiler
.dctxc=IMEDictionaryCompiler
.dds=ddsfile
.der=CERFile
.desklink=CLSID\{9E56BE61-C50F-11CF-9A2C-00A0C90A90CE}
.deskthemepack=desktopthemepackfile
.diagcab=Diagnostic.Cabinet
.diagcfg=Diagnostic.Config
.diagpkg=Diagnostic.Document
.dib=Paint.Picture
.dll=dllfile
.docx=docxfile
.drv=drvfile
.dsn=MSDASQL
.emf=emffile
.eml=Microsoft Email Message
.evt=evtfile
.evtx=evtxfile
.exe=exefile
.flac=WMP11.AssocFile.FLAC
.fon=fonfile
.gif=giffile
.gmmp=gmmpfile
.grp=MSProgramGroup
.hlp=hlpfile
.hta=htafile
.htm=htmlfile
.html=htmlfile
.icc=icmfile
.icl=IconLibraryFile
.icm=icmfile
.ico=icofile
.imesx=imesxfile
.img=Windows.IsoFile
.inf=inffile
.ini=inifile
.iso=Windows.IsoFile
.jfif=pjpegfile
.Job=JobObject
.jod=Microsoft.Jet.OLEDB.4.0
.jpe=jpegfile
.jpeg=jpegfile
.jpg=jpegfile
.js=JSFile
.JSE=JSEFile
.jxr=wdpfile
.label=Label
.library-ms=LibraryFolder
.lnk=lnkfile
.log=txtfile
.m1v=WMP11.AssocFile.MPEG
.M2T=WMP11.AssocFile.M2TS
.M2TS=WMP11.AssocFile.M2TS
.M2V=WMP11.AssocFile.MPEG
.m3u=WMP11.AssocFile.m3u
.m4a=WMP11.AssocFile.M4A
.m4v=WMP11.AssocFile.MP4
.mapimail=CLSID\{9E56BE60-C50F-11CF-9A2C-00A0C90A90CE}
.mht=mhtmlfile
.mhtml=mhtmlfile
.mid=WMP11.AssocFile.MIDI
.midi=WMP11.AssocFile.MIDI
.mk3d=WMP11.AssocFile.MK3D
.mka=WMP11.AssocFile.MKA
.mkv=WMP11.AssocFile.MKV
.mlc=LpkSetup.1
.MOD=WMP11.AssocFile.MPEG
.mov=WMP11.AssocFile.MOV
.mp2=WMP11.AssocFile.MP3
.mp2v=WMP11.AssocFile.MPEG
.mp3=WMP11.AssocFile.MP3
.mp4=WMP11.AssocFile.MP4
.mp4v=WMP11.AssocFile.MP4
.mpa=WMP11.AssocFile.MPEG
.mpe=WMP11.AssocFile.MPEG
.mpeg=WMP11.AssocFile.MPEG
.mpg=WMP11.AssocFile.MPEG
.mpv2=WMP11.AssocFile.MPEG
.ms-windows-store-license=WindowsStore.License
.msc=MSCFile
.msi=Msi.Package
.msp=Msi.Patch
.msrcincident=RemoteAssistance.1
.msstyles=msstylesfile
.msu=Microsoft.System.Update.1
.MTS=WMP11.AssocFile.M2TS
.mydocs=CLSID\{ECF03A32-103D-11d2-854D-006008059367}
.nfo=MSInfoFile
.ocx=ocxfile
.odt=odtfile
.osdx=opensearchdescription
.otf=otffile
.p10=P10File
.p12=PFXFile
.p7b=SPCFile
.p7c=certificate_wab_auto_file
.p7m=P7MFile
.p7r=P7RFile
.p7s=P7SFile
.partial=IE.AssocFile.PARTIAL
.pbk=pbkfile
.perfmoncfg=Diagnostic.Perfmon.Config
.pfm=pfmfile
.pfx=PFXFile
.pif=piffile
.pko=PKOFile
.pnf=pnffile
.png=pngfile
.ppkg=Microsoft.ProvTool.Provisioning.1
.prf=prffile
.printerExport=brmFile
.ps1=Microsoft.PowerShellScript.1
.ps1xml=Microsoft.PowerShellXMLData.1
.psc1=Microsoft.PowerShellConsole.1
.psd1=Microsoft.PowerShellData.1
.psm1=Microsoft.PowerShellModule.1
.pssc=Microsoft.PowerShellSessionConfiguration.1
.qds=SavedDsQuery
.rat=ratfile
.RDP=RDP.File
.reg=regfile
.resmoncfg=Diagnostic.Resmon.Config
.rle=rlefile
.rll=dllfile
.rmi=WMP11.AssocFile.MIDI
.rtf=rtffile
.scf=SHCmdFile
.scp=txtfile
.scr=scrfile
.sct=scriptletfile
.search-ms=SearchFolder
.searchConnector-ms=SearchConnectorFolder
.settingcontent-ms=SettingContent
.sfcache=RDBFileProperties.1
.snd=WMP11.AssocFile.AU
.spc=SPCFile
.sst=CertificateStoreFile
.svg=svgfile
.symlink=.symlink
.sys=sysfile
.theme=themefile
.themepack=themepackfile
.tif=TIFImage.Document
.tiff=TIFImage.Document
.TS=WMP11.AssocFile.TTS
.ttc=ttcfile
.ttf=ttffile
.TTS=WMP11.AssocFile.TTS
.txt=txtfile
.UDL=MSDASC
.URL=InternetShortcut
.VBE=VBEFile
.vbs=VBSFile
.vhd=Windows.VhdFile
.vhdpmem=Windows.VhdPmemFile
.vhdx=Windows.VhdFile
.vxd=vxdfile
.wab=wab_auto_file
.wav=WMP11.AssocFile.WAV
.wax=WMP11.AssocFile.WAX
.wbcat=wbcatfile
.wcx=wcxfile
.wdp=wdpfile
.webpnp=webpnpFile
.website=Microsoft.Website
.wm=WMP11.AssocFile.ASF
.wma=WMP11.AssocFile.WMA
.WMD=WMP11.AssocFile.WMD
.wmdb=WMP.WMDBFile
.wmf=wmffile
.WMS=WMP11.AssocFile.WMS
.wmv=WMP11.AssocFile.WMV
.wmx=WMP11.AssocFile.ASX
.wmz=WMP11.AssocFile.WMZ
.wpl=WMP11.AssocFile.WPL
.wsc=scriptletfile
.WSF=WSFFile
.WSH=WSHFile
.wtx=txtfile
.wvx=WMP11.AssocFile.WVX
.xaml=Windows.XamlDocument
.xbap=Windows.Xbap
.xht=xhtmlfile
.xhtml=xhtmlfile
.xml=xmlfile
.xrm-ms=MSSppLicenseFile
.xsl=xslfile
.ZFSendToTarget=CLSID\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}
.zip=CompressedFolder