views:

462

answers:

4

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"
+1  A: 

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

REGEDIT4
[-HKEY_CURRENT_USER\RemoveThisTree]
[HKEY_CURRENT_USER\RemoveValue]
"valueName"=-
doekman
Cool, I didn't know the minus sign removed registry keys and values. Good info.
Ron Todosichuk
+3  A: 

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

P Daddy
Although that documentation is not entirely. Go Microsoft.
pst
..not entirely *accurate*
pst
Documentation rarely is.
P Daddy
A: 

Have a look at wotsit.org and search for "reg". You can download a relatively good documentation for "Windows Registry File Format (ASCII .REG format)" by Jeroen Mostert there.

Peter
A: 

Use Reg apis.