Regedit file format

12,997

Solution 1

Remove keys and values by using the minus sign (-).

REGEDIT4
[-HKEY_CURRENT_USER\RemoveThisTree]
[HKEY_CURRENT_USER\RemoveValue]
"valueName"=-

References

Solution 2

Documenting the .reg file format is really more Microsoft's job.

Share:
12,997
Jon Gretar
Author by

Jon Gretar

I'm both a Mac and Windows user. I like programming web applications. My languages of choice are Python, Javascript and C#.

Updated on June 03, 2022

Comments

  • Jon Gretar
    Jon Gretar almost 2 years

    I would like to document the file format of regedit utility, so data can be merged into the registry.

    From the command-line you can (silently) merge data from a batch file like this:

    regedit /s file.reg
    

    Exporting from a subkey goes like this:

    regedit /e file.reg "HKEY_XX\key"
    
  • Admin
    Admin over 14 years
    Although that documentation is not entirely. Go Microsoft.
  • Lorenz Meyer
    Lorenz Meyer about 5 years
    IF ENDIF is neither used by reg command nor regedit. It is about `Platform Builder for Windows Embedded Compact 2013.