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"
doekman
  • 18,750
  • 20
  • 65
  • 86
  • 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. – Tomalak Dec 02 '08 at 15:29
  • On the other hand, rebuilding all the world's knowledge IS [Wikipedia's mission](http://en.wikipedia.org/wiki/Windows_Registry#.REG_files) (found, as @Tomalak hinted, by the same Google search that led to this question) – David Pope Dec 23 '12 at 17:45

2 Answers2

22

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

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

References

StackzOfZtuff
  • 2,534
  • 1
  • 28
  • 25
doekman
  • 18,750
  • 20
  • 65
  • 86
15

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

P Daddy
  • 28,912
  • 9
  • 68
  • 92