Registry help - remove sub key


  1. Posts : 9
    Windows 10 Pro (x64)
       #1

    Registry help - remove sub key


    Hello.

    I am looking for help with proper syntax in editing a saved .reg file.

    (Windows10x64)

    I know that by placing a "-" in front of a key deletes the entire key, but what syntax is used to delete a specific part of a sub key only?
    ...being the ".jpg"="PBrush" part.

    Here is the .reg file:

    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Paint\Capabilities\FileAssociat ions]
    ".avci"="PBrush"
    ".avif"="PBrush"
    ".bmp"="PBrush"
    ".dib"="PBrush"
    ".emf"="emffile"
    ".gif"="PBrush"
    ".heic"="PBrush"
    ".heif"="PBrush"
    ".ico"="PBrush"
    ".jfif"="PBrush"
    ".jpe"="PBrush"
    ".jpeg"="PBrush"
    ".jpg"="PBrush"
    ".png"="PBrush"
    ".rle"="rlefile"
    ".tif"="PBrush"
    ".tiff"="PBrush"
    ".webp"="PBrush"
    ".wmf"="wmffile"
      My Computer

  2. SIW2's Avatar
    Posts : 1,665
    trying to install win10
       #2

    just a minus sign after equals, example:

    ".jpg"=-
      My Computer


  3. Posts : 9
    Windows 10 Pro (x64)
    Thread Starter
       #3

    That did it!
    Much appreciated SIW2!
      My Computer

  4. SIW2's Avatar
    Posts : 1,665
    trying to install win10
       #4

    You're welcome
      My Computer

  5. Try3's Avatar
    Posts : 7,452
    Windows 10 Home x64 Version 20H2 Build 19042.928
       #5

    And you see this for other .reg file syntax guidance
    How to add, modify, or delete registry subkeys and values by using a .reg file KB310516

    Denis
      My Computer


  6. Posts : 9
    Windows 10 Pro (x64)
    Thread Starter
       #6

    Thanks Denis (Try3)!
      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 13:46.
Find Us




Windows 10 Forums