Python WinReg Path Wildcard
<p>I am trying to get some values out of the registry. The problem is, one of the subkeys is "unknown". As an example, this is the key for the networked drive of "Z".<br>
"HKEY_CURRENT_USER/Network/Z"  </p>

<p>Here is the current basic code which looks for this specifically.  </p>

<pre><code>try:
    t = OpenKey(HKEY_CURRENT_USER, r"Network\\Z", 0, KEY_ALL_ACCESS)  

    i = 0
    while True:
        subkey = EnumValue(t, i)
        # print subkey[0], "  ", subkey[1]
        i += 1
except WindowsError:
    # WindowsError: [Errno 259] No more data is available
    pass
</code></pre>

<p>How can I add a "Wildcard" to the "Network\Z" part in case their is more than one network path other than Z?</p>