Registry help - remove sub key


  1. Posts : 28
    Windows 10 Pro (x64) 22H2
       #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. Posts : 4,592
    several
       #2

    just a minus sign after equals, example:

    ".jpg"=-
      My Computer


  3. Posts : 28
    Windows 10 Pro (x64) 22H2
    Thread Starter
       #3

    That did it!
    Much appreciated SIW2!
      My Computer


  4. Posts : 4,592
    several
       #4

    You're welcome
      My Computer


  5. Posts : 16,949
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #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 : 28
    Windows 10 Pro (x64) 22H2
    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 06:35.
Find Us




Windows 10 Forums