How do I Open Windows Registry with write access in Python

后端 未结 1 998
予麋鹿
予麋鹿 2020-12-04 23:04

I\'m having some problems accessing the Windows 7 Registry with the _winreg.QueryValueEx function in the Python 2.7.3 _winreg module.

I am running the python proces

相关标签:
1条回答
  • 2020-12-04 23:15

    I solved the problem by doing:

    key = wreg.OpenKey(wreg.HKEY_LOCAL_MACHINE, "Software\\TestCompany\\TestProject",0, wreg.KEY_ALL_ACCESS)
    
    0 讨论(0)
提交回复
热议问题