Re: ~Name not defined" error

taraiti <[email protected]> Fri, 11 Jul 2008 11:22:13 -0700 (PDT)
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>


ConnectRegistry seems not to be implemented in PythonCE

However you can still replace:

aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE)

aKey = OpenKey(aReg, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run")

by:

aKey = OpenKey(HKEY_LOCAL_MACHINE,  
r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run")

I have replaced the lines as suggested and now get the error:
<Type 'exceptions.WindowsError'>:[Error 2] The system cannot find the file
specified

Any ideas?

-- 
View this message in context: http://www.nabble.com/%7EName-not-defined%22-error-tp18398957p18409779.html
Sent from the Python - pythonce mailing list archive at Nabble.com.