Restoring default Win7 file extensions

Discussion in 'Software' started by dlb, Apr 26, 2011.

  1. dlb

    dlb MajorGeek

    I have a .BAT (batch) file for restoring all default file extensions and their associations for WinXP, but I haven't been able to find one for Vista and/or Win7. I did find a site that has all the individual .REG fixes for each file extension/association, but having to do that one-by-one would be VERY uncool and time consuming... any links or info will be appreciated!!!

    THX!

    (BTW - the site with all the individual REG fixes for Win7 ONLY can be found here: http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html)
     
  2. theefool

    theefool Geekified

    Well, there is a way, download them all, then you could use a dos (for) statement to run them all. I can't give a script now, but if I remember for tomorrow, I could do something. Also, you can combine them all in one .reg file. Then run it once. Kinda curious about the .bat file ye have. Mind PM it to me? Or link it here?
     
  3. dlb

    dlb MajorGeek

    Use this direct link to a .zip of the .bat file for WinXP. It's from the the famous DougKnox help site. If it doesn't allow direct 'hotlinks', you can achieve the same result with this link, just click on the blue underlined "HERE" in the 4th line/paragraph.... if the .bat and/or .zip extensions are shot, you can use individual fixes from here (again, for WinXP only).

    I'd seriously appreciate a Win7 version of this same .bat file!!! THX!
     
  4. theefool

    theefool Geekified

    interesting. I may be able to do this with a fresh load of windows 7, quite quickly in a VM. Though, not right now.

    Typing in, from a cmd prompt: assoc brings everything up, simply redirecting to a txt file, then editing it, should be quite easy. Hints for those who want to do the same. :)
     
  5. theefool

    theefool Geekified

    Well, here ye go!

    Code:
    @echo off
    echo No guarantees that this will work, this is based on a fresh windows 7 sp1 install.
    echo Smash any key with your fist to set associations to default
    pause
    assoc .386=vxdfile
    assoc .3g2=WMP11.AssocFile.3G2
    assoc .3gp=WMP11.AssocFile.3GP
    assoc .3gp2=WMP11.AssocFile.3G2
    assoc .3gpp=WMP11.AssocFile.3GP
    assoc .AAC=WMP11.AssocFile.ADTS
    assoc .ADT=WMP11.AssocFile.ADTS
    assoc .ADTS=WMP11.AssocFile.ADTS
    assoc .aif=WMP11.AssocFile.AIFF
    assoc .aifc=WMP11.AssocFile.AIFF
    assoc .aiff=WMP11.AssocFile.AIFF
    assoc .ani=anifile
    assoc .application=Application.Manifest
    assoc .appref-ms=Application.Reference
    assoc .asa=aspfile
    assoc .asf=WMP11.AssocFile.ASF
    assoc .asp=aspfile
    assoc .asx=WMP11.AssocFile.ASX
    assoc .au=WMP11.AssocFile.AU
    assoc .avi=WMP11.AssocFile.AVI
    assoc .bat=batfile
    assoc .blg=Diagnostic.Perfmon.Document
    assoc .bmp=Paint.Picture
    assoc .c2r=MediaCenter.C2R
    assoc .cab=CABFolder
    assoc .camp=campfile
    assoc .cat=CATFile
    assoc .cda=WMP11.AssocFile.CDA
    assoc .cdmp=cdmpfile
    assoc .cdx=aspfile
    assoc .cer=CERFile
    assoc .chk=chkfile
    assoc .chm=chm.file
    assoc .cmd=cmdfile
    assoc .com=comfile
    assoc .compositefont=Windows.CompositeFont
    assoc .contact=contact_wab_auto_file
    assoc .cpl=cplfile
    assoc .crd=Microsoft.InformationCard
    assoc .crds=Microsoft.WindowsCardSpaceBackup
    assoc .crl=CRLFile
    assoc .crt=CERFile
    assoc .css=CSSfile
    assoc .cur=curfile
    assoc .db=dbfile
    assoc .der=CERFile
    assoc .desklink=CLSID\{9E56BE61-C50F-11CF-9A2C-00A0C90A90CE}
    assoc .diagcab=Diagnostic.Cabinet
    assoc .diagcfg=Diagnostic.Config
    assoc .diagpkg=Diagnostic.Document
    assoc .dib=Paint.Picture
    assoc .dll=dllfile
    assoc .docx=docxfile
    assoc .drv=drvfile
    assoc .dsn=MSDASQL
    assoc .DVR=MediaCenter.DVR
    assoc .dvr-ms=MediaCenter.DVR-MS
    assoc .dwfx=Windows.XPSReachViewer
    assoc .easmx=Windows.XPSReachViewer
    assoc .edrwx=Windows.XPSReachViewer
    assoc .emf=emffile
    assoc .eprtx=Windows.XPSReachViewer
    assoc .evt=evtfile
    assoc .evtx=evtxfile
    assoc .exe=exefile
    assoc .fon=fonfile
    assoc .gadget=Windows.gadget
    assoc .gif=giffile
    assoc .gmmp=gmmpfile
    assoc .group=group_wab_auto_file
    assoc .grp=MSProgramGroup
    assoc .H1C=h1cfile
    assoc .H1D=h1dfile
    assoc .H1F=h1ffile
    assoc .H1H=h1hfile
    assoc .H1K=h1kfile
    assoc .H1Q=h1qfile
    assoc .H1S=h1sfile
    assoc .H1T=h1tfile
    assoc .H1V=h1vfile
    assoc .H1W=h1wfile
    assoc .hlp=hlpfile
    assoc .hta=htafile
    assoc .htm=htmlfile
    assoc .html=htmlfile
    assoc .icc=icmfile
    assoc .icl=IconLibraryFile
    assoc .icm=icmfile
    assoc .ico=icofile
    assoc .img=Windows.IsoFile
    assoc .inf=inffile
    assoc .ini=inifile
    assoc .iso=Windows.IsoFile
    assoc .jfif=pjpegfile
    assoc .jnt=jntfile
    assoc .Job=JobObject
    assoc .jod=Microsoft.Jet.OLEDB.4.0
    assoc .jpe=jpegfile
    assoc .jpeg=jpegfile
    assoc .jpg=jpegfile
    assoc .js=JSFile
    assoc .JSE=JSEFile
    assoc .jtp=jtpfile
    assoc .jtx=Windows.XPSReachViewer
    assoc .label=Label
    assoc .library-ms=LibraryFolder
    assoc .lnk=lnkfile
    assoc .log=txtfile
    assoc .m1v=WMP11.AssocFile.MPEG
    assoc .m2t=WMP11.AssocFile.M2TS
    assoc .m2ts=WMP11.AssocFile.M2TS
    assoc .m2v=WMP11.AssocFile.MPEG
    assoc .m3u=WMP11.AssocFile.m3u
    assoc .m4a=WMP11.AssocFile.M4A
    assoc .m4v=WMP11.AssocFile.MP4
    assoc .mapimail=CLSID\{9E56BE60-C50F-11CF-9A2C-00A0C90A90CE}
    assoc .mcl=MediaCenter.MCL
    assoc .mht=mhtmlfile
    assoc .mhtml=mhtmlfile
    assoc .mid=WMP11.AssocFile.MIDI
    assoc .midi=WMP11.AssocFile.MIDI
    assoc .mig=migfile
    assoc .mlc=LpkSetup.1
    assoc .mod=WMP11.AssocFile.MPEG
    assoc .mov=WMP11.AssocFile.MOV
    assoc .mp2=WMP11.AssocFile.MP3
    assoc .mp2v=WMP11.AssocFile.MPEG
    assoc .mp3=WMP11.AssocFile.MP3
    assoc .mp4=WMP11.AssocFile.MP4
    assoc .mp4v=WMP11.AssocFile.MP4
    assoc .mpa=WMP11.AssocFile.MPEG
    assoc .mpe=WMP11.AssocFile.MPEG
    assoc .mpeg=WMP11.AssocFile.MPEG
    assoc .mpg=WMP11.AssocFile.MPEG
    assoc .mpv2=WMP11.AssocFile.MPEG
    assoc .msc=MSCFile
    assoc .msdvd=Windows.DVD.Maker
    assoc .msi=Msi.Package
    assoc .msp=Msi.Patch
    assoc .msrcincident=RemoteAssistance.1
    assoc .msstyles=msstylesfile
    assoc .msu=Microsoft.System.Update.1
    assoc .mts=WMP11.AssocFile.M2TS
    assoc .mydocs=CLSID\{ECF03A32-103D-11d2-854D-006008059367}
    assoc .nfo=MSInfoFile
    assoc .ocx=ocxfile
    assoc .odt=odtfile
    assoc .osdx=opensearchdescription
    assoc .otf=otffile
    assoc .p10=P10File
    assoc .p12=PFXFile
    assoc .p7b=SPCFile
    assoc .p7c=certificate_wab_auto_file
    assoc .p7m=P7MFile
    assoc .p7r=P7RFile
    assoc .p7s=P7SFile
    assoc .pbk=pbkfile
    assoc .perfmoncfg=Diagnostic.Perfmon.Config
    assoc .pfm=pfmfile
    assoc .pfx=PFXFile
    assoc .pif=piffile
    assoc .pko=PKOFile
    assoc .pnf=pnffile
    assoc .png=pngfile
    assoc .prf=prffile
    assoc .printerExport=brmFile
    assoc .ps1=Microsoft.PowerShellScript.1
    assoc .ps1xml=Microsoft.PowerShellXMLData.1
    assoc .psc1=Microsoft.PowerShellConsole.1
    assoc .psd1=Microsoft.PowerShellData.1
    assoc .psm1=Microsoft.PowerShellModule.1
    assoc .qds=SavedDsQuery
    assoc .rat=ratfile
    assoc .RDP=RDP.File
    assoc .reg=regfile
    assoc .resmoncfg=Diagnostic.Resmon.Config
    assoc .rle=rlefile
    assoc .rll=dllfile
    assoc .rmi=WMP11.AssocFile.MIDI
    assoc .rtf=rtffile
    assoc .scf=SHCmdFile
    assoc .scp=txtfile
    assoc .scr=scrfile
    assoc .sct=scriptletfile
    assoc .search-ms=SearchFolder
    assoc .searchConnector-ms=SearchConnectorFolder
    assoc .sfcache=RDBFileProperties.1
    assoc .slupkg-ms=MSSppPackageFile
    assoc .snd=WMP11.AssocFile.AU
    assoc .spc=SPCFile
    assoc .sst=CertificateStoreFile
    assoc .stl=STLFile
    assoc .sys=sysfile
    assoc .theme=themefile
    assoc .themepack=themepackfile
    assoc .tif=TIFImage.Document
    assoc .tiff=TIFImage.Document
    assoc .ts=WMP11.AssocFile.TTS
    assoc .ttc=ttcfile
    assoc .ttf=ttffile
    assoc .tts=WMP11.AssocFile.TTS
    assoc .txt=txtfile
    assoc .UDL=MSDASC
    assoc .URL=InternetShortcut
    assoc .VBE=VBEFile
    assoc .vbs=VBSFile
    assoc .vcf=vcard_wab_auto_file
    assoc .vxd=vxdfile
    assoc .wab=wab_auto_file
    assoc .wav=WMP11.AssocFile.WAV
    assoc .wax=WMP11.AssocFile.WAX
    assoc .wbcat=wbcatfile
    assoc .wcx=wcxfile
    assoc .wdp=wdpfile
    assoc .webpnp=webpnpFile
    assoc .wm=WMP11.AssocFile.ASF
    assoc .wma=WMP11.AssocFile.WMA
    assoc .WMD=WMP11.AssocFile.WMD
    assoc .wmdb=WMP.WMDBFile
    assoc .wmf=wmffile
    assoc .WMS=WMP11.AssocFile.WMS
    assoc .wmv=WMP11.AssocFile.WMV
    assoc .wmx=WMP11.AssocFile.ASX
    assoc .wmz=WMP11.AssocFile.WMZ
    assoc .wpl=WMP11.AssocFile.WPL
    assoc .wsc=scriptletfile
    assoc .WSF=WSFFile
    assoc .WSH=WSHFile
    assoc .WTV=MediaCenter.WTVFile
    assoc .wtx=txtfile
    assoc .wvx=WMP11.AssocFile.WVX
    assoc .xaml=Windows.XamlDocument
    assoc .xbap=Windows.Xbap
    assoc .xml=xmlfile
    assoc .xps=Windows.XPSReachViewer
    assoc .xrm-ms=MSSppLicenseFile
    assoc .xsl=xslfile
    assoc .zfsendtotarget=CLSID\{888DCA60-FC0A-11CF-8F0F-00C04FD7D062}
    assoc .zip=CompressedFolder
    echo Done I guess....
    pause
    
     
  6. dlb

    dlb MajorGeek

    THX! You know what's weird??? I went to a cmd prompt on my home PC (win7 X64 Home premium) and typed assoc and pressed Enter, and I did NOT get a complete list!!! It started at the ".m**" extensions with "MahjongTitansSave-ms" being the first one listed. WTF? :confused After that, everything from ".mapimail" thru ".zip" is listed. Is there some reason why I'm only showing the last half of the file extensions? I have no problems with ANY extensions on my home PC - I started this thread because of a Win7 PC at work that had some hosed extension associations.

    Thanks again! You've been a great help!
     
  7. techsent

    techsent Corporal

    hey dlb,

    it's the command window buffer limit. It'll only show a certain amount of lines.

    type assoc > c:\assoc.txt and hit enter

    check the contents of the assoc.txt file.

    you can also change the buffer size in the cmd.exe properties.

    Techsent
     
    Last edited: Apr 28, 2011
  8. dlb

    dlb MajorGeek

    Yeah - I figured it was something like that :-o

    . . . . and thanks again!
     
  9. theefool

    theefool Geekified

    Well, if it doesn't help, I'll try something else. :)
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds