Python Forum
[WinReg]>Issue when reading a registry key
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[WinReg]>Issue when reading a registry key
#1
Hello All,

I'm trying without success to read the key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\IEXPLORE.EXE\DefaultIcon

here is the code I'm using :

from winreg import *
from time import sleep
n = OpenKey(HKEY_LOCAL_MACHINE, r'SOFTWARE\Clients\StartMenuInternet\DefaultIcon', 0, KEY_READ | KEY_WOW64_64KEY)
t = (EnumValue(n,0))
print(t)
It fails with error:
Output:
FileNotFoundError": [WinError 2] The system cannot find the file specified
What am I doing wrong ?

Thanks for your help
Reply


Messages In This Thread
[WinReg]>Issue when reading a registry key - by CSA75 - Mar-28-2017, 06:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to add Python folder in Windows Registry ? Touktouk 1 1,369 Feb-20-2024, 01:04 PM
Last Post: DeaD_EyE
  Read complete windows registry? fredep57 3 1,999 Mar-15-2023, 08:14 PM
Last Post: buran
  I have an issue with Netmiko Error reading SSH protocol banner omarhegazy 2 5,598 May-16-2022, 06:05 PM
Last Post: omarhegazy
  How to add new registry key shlomi27 3 12,424 Feb-04-2021, 05:45 PM
Last Post: reidnax
  Issue with HX711 reading duckredbeard 0 2,891 Aug-28-2020, 10:00 AM
Last Post: duckredbeard
  Automatic registering python to registry kozaizsvemira 1 3,231 Oct-22-2019, 11:23 AM
Last Post: kozaizsvemira
  Python 2.7.13 Issue Reading .txt files Properly username1145 3 3,394 Mar-24-2019, 03:08 PM
Last Post: username1145
  How to ignore - ERROR: The system was unable to find the specified registry key or va asheru93 9 8,739 Feb-04-2019, 06:35 AM
Last Post: asheru93
  Issue with reading CSV file nnsatpute 12 7,806 Dec-19-2018, 12:08 PM
Last Post: Gribouillis
  Issue in reading a text file contains dict data bharathappriyan 4 4,301 Sep-27-2018, 01:45 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020