Discussion:
Defragmenting the registry
(too old to reply)
Sonnich Jensen
2011-12-29 18:13:48 UTC
Permalink
Hi

Have anyone tried to defragment (or compact) the registry at run time?

I have searched the net, but found nothing but programmes doing this.
An example in any language would be useful.

Thx
Sonnich
Jamie
2011-12-29 21:59:59 UTC
Permalink
Post by Sonnich Jensen
Hi
Have anyone tried to defragment (or compact) the registry at run time?
I have searched the net, but found nothing but programmes doing this.
An example in any language would be useful.
Thx
Sonnich
Playing with the registry is a dangerous game!

What I have seen done is the reading and writing of the
complete registry. Much like the exporting and importing
of the registry.. However, it is a dangerous operation when
something goes wrong in the middle of a registry image
change.

You must remember that apps are connected to the reg and
doing massive work like that on the reg would most likely force your
system into a shut down to resync everything.

It is possible, I don't know that Win7-64 has cured this problem..

Jamie
Erick Engelke
2011-12-30 01:49:04 UTC
Permalink
Post by Jamie
Post by Sonnich Jensen
Have anyone tried to defragment (or compact) the registry at run time?
I have searched the net, but found nothing but programmes doing this.
An example in any language would be useful.
Playing with the registry is a dangerous game!
What I have seen done is the reading and writing of the
complete registry. Much like the exporting and importing
of the registry.. However, it is a dangerous operation when
something goes wrong in the middle of a registry image
change.
There are two ways I can see doing it:

1. writing a registry attaching driver that keeps track of changes
happenning while you do the read/copy of the registry

or 2. Find the format of the registry and do it offline, such as booted
from a BartPE disk.
http://www.codeproject.com/KB/recipes/RegistryDumper.aspx

Erick

Loading...