Popular recipes tagged "meta:requires=winreg" but not "environment"http://code.activestate.com/recipes/tags/meta:requires=winreg-environment/2013-10-15T07:30:39-07:00ActiveState Code RecipesGet a value un windows registry (Python)
2013-10-15T07:30:39-07:00Garel Alexhttp://code.activestate.com/recipes/users/2757636/http://code.activestate.com/recipes/578689-get-a-value-un-windows-registry/
<p style="color: grey">
Python
recipe 578689
by <a href="/recipes/users/2757636/">Garel Alex</a>
(<a href="/recipes/tags/registry/">registry</a>, <a href="/recipes/tags/win32api/">win32api</a>, <a href="/recipes/tags/windows/">windows</a>).
</p>
<p>A small function to get a value in windows registry from its key path and value name.</p>
<p>Note that recipe <a href="http://code.activestate.com/recipes/502268/" rel="nofollow">http://code.activestate.com/recipes/502268/</a> gives a more complete solution.</p>
Windows Registry: Search & Destroy (Python)
2012-07-12T12:23:05-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/578209-windows-registry-search-destroy/
<p style="color: grey">
Python
recipe 578209
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/archive/">archive</a>, <a href="/recipes/tags/delete/">delete</a>, <a href="/recipes/tags/old/">old</a>, <a href="/recipes/tags/search/">search</a>, <a href="/recipes/tags/windows_registry/">windows_registry</a>).
</p>
<p>If you know that your registry has useless information in it and want to remove entries, this recipe was provide you with a simple way of accomplishing such a purpose. After entering strings to match and causing an EOF, the program will search for what you entered, and is designed to automatically delete what was requested. This is committed for archival to be run under Python 2.5 or later versions.</p>
KR(MKv3) - install.py (Python)
2007-03-20T18:38:08-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510394-krmkv3-installpy/
<p style="color: grey">
Python
recipe 510394
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>The following program shows sample usage of the _winreg Wrapper.</p>
KR(MKv3) - opt.py (Python)
2007-03-20T18:41:17-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510396-krmkv3-optpy/
<p style="color: grey">
Python
recipe 510396
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/database/">database</a>).
</p>
<p>The following module shows sample usage of the _winreg Wrapper.</p>
KR(MKv3) - uninstall.py (Python)
2007-03-20T18:39:22-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/510395-krmkv3-uninstallpy/
<p style="color: grey">
Python
recipe 510395
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/programs/">programs</a>).
</p>
<p>The following program shows sample usage of the _winreg Wrapper.</p>
Example For winreg (2) (Python)
2011-05-20T13:22:37-07:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/498151-example-for-winreg-2/
<p style="color: grey">
Python
recipe 498151
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
Revision 2.
</p>
<p>This recipe is another example of how to use the winreg module.
The code had the first purpose of demonstrating the concept of
a graphical shell built in Python. The shell was easily modified
to make use of the Window's registry but retains traces of its
original method of operation (all of which has been commented out).</p>
<p>The program down below originally used the pickle module to save
all of its settings when closing down. Now once the escape key is
pressed, this Python 2.5 program can use the module presented in
<a href="http://code.activestate.com/recipes/510392/">recipe 510392</a> to access Microsoft Window's Registry and store its
settings there. Check <code>do_exit</code> and <code>do_config</code> functions for usage.</p>
Example For winreg (1) (Python)
2007-03-02T03:57:10-08:00Stephen Chappellhttp://code.activestate.com/recipes/users/2608421/http://code.activestate.com/recipes/498150-example-for-winreg-1/
<p style="color: grey">
Python
recipe 498150
by <a href="/recipes/users/2608421/">Stephen Chappell</a>
(<a href="/recipes/tags/shortcuts/">shortcuts</a>).
Revision 2.
</p>
<p>The code presented below is a short example of how
to use winreg. This recipe prints out as much data
as possible about the user's registry. Hives are
specified as such before their representations.
Errors in opening keys are listed with the problem
key's name.</p>