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

Dahlstrom, Roger rdahlstrom at directedge.com
Fri Dec 5 18:51:23 CET 2008


Well, sure the registry itself is not text, but the keynames contained within it are, and so are the values, once you've read them.  Basically what I'm saying is not that you need *no* permissions, just that you don't need any *special* permissions - if you have permission to read it and enumerate the subkeys, that is (at least in my experience, maybe I'm not doing exactly what the request is) sufficient.  Regedit is not needed, as regedit is not what is being used, whatever program you are running is being used.

-----Original Message-----
From: python-win32-bounces+rdahlstrom=directedge.com at python.org [mailto:python-win32-bounces+rdahlstrom=directedge.com at python.org] On Behalf Of Tim Roberts
Sent: Friday, December 05, 2008 12:44 PM
To: Python-Win32 List
Subject: Re: [python-win32] Walking the registry and creating reg files

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.
>

Well, you are simplifying things a bit too much.  The registry itself is
NOT, in fact, text.  It is an indexed, hierarchical database.  You can
certainly use regedit to export a key to text, but the question here was
about doing it programmatically, without regedit.  Regedit supports the
backup/restore function that Tim mentioned, but to do so, it has to
acquire backup privileges.  If you want to use the same functions from
your own program, YOU have to acquire the backup privileges.

--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32 at python.org
http://mail.python.org/mailman/listinfo/python-win32


DISCLAIMER:
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and
may contain legally privileged and/or confidential information. If you are not the intended recipient
of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and 
any attachments thereto, is strictly prohibited. If you have received this in error, please immediately notify 
me and permanently delete the original and any copy of any e-mail and any printout thereof. 
E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept 
liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.

NOTICE REGARDING PRIVACY AND CONFIDENTIALITY
Direct Edge ECN LLC may, at its discretion, monitor and review the content of all e-mail communications.

www.directedge.com


More information about the python-win32 mailing list