Dolamite Jenkins
asked on
WindowsError: [Error 2] The system cannot find the file specified
I keep getting this error
Traceback (most recent call last):
File "C:/Documents and Settings/dolamite/Desktop/ reg.py", line 4, in <module>
aKey = OpenKey(aReg, r'SOFTWARE\SEMS_Event_Mana gment')
WindowsError: [Error 2] The system cannot find the file specified
I am trying to get the expiration date from the registry
the exact location of the registry Im trying to locate is
My Computer\HKEY_LOCAL_MACHIN E\SOFTWARE \SEMS_Even t_Managmen t
Expiration
what am I doing wrong ?
Traceback (most recent call last):
File "C:/Documents and Settings/dolamite/Desktop/
aKey = OpenKey(aReg, r'SOFTWARE\SEMS_Event_Mana
WindowsError: [Error 2] The system cannot find the file specified
from _winreg import *
aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE)
aKey = OpenKey(aReg, r'SOFTWARE\SEMS_Event_Managment')
expiration = QueryValueEx(aKey, "Expiration")
print expiration
CloseKey(aKey)
I am trying to get the expiration date from the registry
the exact location of the registry Im trying to locate is
My Computer\HKEY_LOCAL_MACHIN
Expiration
what am I doing wrong ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
perfect thanks
ASKER