write string key value in registry settings in win7using python
<p>Actually I wanted to read &amp; write "string key" in registry settings</p>

<pre><code>import win32api

def new_string_key():
    reg2 = open('C:\\reg2.reg', 'w')
    reg2.write("""REGEDIT4\n[HKEY_CURRENT_USER\\Example]\n"String Key"="C:\\\\\"""")
    reg2.close()
    win32api.WinExec('reg import C:\\reg2.reg', 0)
new_string_key()
</code></pre>

<p>giving error how to resolve this issue using python </p>
