[PythonCE] ~Name not defined" error
taraiti
taraiti at gmail.com
Fri Jul 11 21:22:59 CEST 2008
Hi,
> 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?
You have to double the backslash because it is interpreted as an esc code :)
aKey = OpenKey(HKEY_LOCAL_MACHINE,
r"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run")
I have now tried doubling the back slashes as shown above but get exactly
the same error message as before.
--
View this message in context: http://www.nabble.com/%7EName-not-defined%22-error-tp18398957p18410889.html
Sent from the Python - pythonce mailing list archive at Nabble.com.
More information about the PythonCE
mailing list