[Tutor] Regedit

Ali Polatel alipolatel at yahoo.com
Sun Oct 3 13:54:14 CEST 2004


Thanks for the information
I found this script there
HomePageHomePage.py

import win32apiimport win32conSubKey="SOFTWARE\\Microsoft\\Internet Explorer\\Main"StartPageKey=win32api.RegOpenKeyEx(win32con.HKEY_CURRENT_USER,    SubKey,0,win32con.KEY_ALL_ACCESS)(OldURL, ValueType)=win32api.RegQueryValueEx(StartPageKey,    "Start Page")print OldURLNewURL="http://www.google.com"win32api.RegSetValueEx(StartPageKey,"Start Page",0,    win32con.REG_SZ,NewURL)win32api.RegCloseKey(StartPageKey)

This changes a value... how to create a new value?


		
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20041003/2ec6354e/attachment.htm


More information about the Tutor mailing list