Regedit file format
Asked Answered
A

2

12

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"
Aimeeaimil answered 2/12, 2008 at 14:57 Comment(2)
I don't think SO's intention is to rebuild all the knowledge of the internet in one place, but rather to fill the gaps a Google search leaves open.Cogitative
On the other hand, rebuilding all the world's knowledge IS Wikipedia's mission (found, as @Cogitative hinted, by the same Google search that led to this question)Henden
A
22

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

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

References

Aimeeaimil answered 2/12, 2008 at 14:58 Comment(2)
Cool, I didn't know the minus sign removed registry keys and values. Good info.Scyphozoan
IF ENDIF is neither used by reg command nor regedit. It is about `Platform Builder for Windows Embedded Compact 2013.Seethrough
K
15

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

Kletter answered 2/12, 2008 at 15:2 Comment(1)
Although that documentation is not entirely. Go Microsoft.Extrorse

© 2022 - 2024 — McMap. All rights reserved.