Python code to read registry
Python code to read registry Question: from _winreg import * “””print r”*** Reading from SOFTWAREMicrosoftWindowsCurrentVersionRun ***” “”” aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE) aKey = OpenKey(aReg, r”SOFTWAREMicrosoftWindowsCurrentVersionUninstall”) for i in range(1024): try: asubkey=EnumKey(aKey,i) val=QueryValueEx(asubkey, “DisplayName”) print val except EnvironmentError: break Could anyone please correct the error…i just want to display the “DisplayName” within the subkeys of the key …