开发者

Edit Windows 7 Registry in Python? [duplicate]

This question already has answers here: Write to reg开发者_开发知识库istry in Windows Vista (3 answers) Closed 2 years ago.

I have run into another problem with my current project. The program needs to values and keys periodically while running. Each time I attempt to edit the value, I get a code 5, Access Denied. How would I go about doing this so the values can be editied, but the user doesn't have to enter admin credentials to run the application?

I am using the _winreg module with Python 2.6 on Windows 7.


If you want to edit something that is writable only with administrative privileges, you just have to run under admin privileges. Everything else would be a giant security hole.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜