Adding file extensions using registry entries?


  1. Posts : 1
    Windows 10 64-bit
       #1

    Adding file associations using registry entries?


    I've recently upgraded from Windows XP to 10 (64-bit), and the .reg files I've crafted for adding custom file associations don't work anymore. What's changed? How do I make them work again? Sample:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Classes\.pdf]
    @="user.sumatra.pdf"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf]
    @="PDF Document"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\\DefaultIcon]
    @="F:\\BIN\\SumatraPDF\\SumatraPDF.exe,1"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell]
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell\open]
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell\open\command]
    @="\"F:\\BIN\\SumatraPDF\\SumatraPDF.exe\" \"%1\""
    Last edited by kaka55tyanh; 08 Nov 2015 at 03:25.
      My Computer


  2. XP1
    Posts : 6
    *
       #2

    Add this at the top:
    Code:
    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf]
    Like:
    Code:
    Windows Registry Editor Version 5.00
    
    [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.pdf]
    
    [HKEY_CURRENT_USER\Software\Classes\.pdf]
    @="user.sumatra.pdf"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf]
    @="PDF Document"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\\DefaultIcon]
    @="F:\\BIN\\SumatraPDF\\SumatraPDF.exe,1"
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell]
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell\open]
    
    [HKEY_CURRENT_USER\Software\Classes\user.sumatra.pdf\shell\open\command]
    @="\"F:\\BIN\\SumatraPDF\\SumatraPDF.exe\" \"%1\""
    Source:
    The AppSense Bigot: Deploying per-user file type associations (FTAs) on XenApp 7.6 Server 2012 R2 (slightly reloaded)
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:57.
Find Us




Windows 10 Forums