[python-win32] Walking the registry and creating reg files

Tim Golden mail at timgolden.me.uk
Fri Dec 5 16:02:10 CET 2008


Dahlstrom, Roger wrote:
> If you can read the registry, you can save it without any other 
> special permissions.  It is just text.
> 
> Just export a branch of your own registry and open it with notepad 
> to see the format.  I do it all the time, it works fine.

You're quite right, Roger, and other people earlier in the thread
have more-or-less suggested this approach. I think Mike was looking
for something programmatic and there doesn't seem to be anything in
the API which offers the same output as the Export action gives you
from the menu.

My point about the backup (and later restore) privs refers to the
specific API calls RegSaveKey and RegRestoreKey. These produce
an opaque binary format which doesn't look quite so good in 
notepad. :)

TJG


More information about the python-win32 mailing list