Re: [PythonCE] ~Name not defined" error

2008-07-11 Thread Alexandre Delattre
David Williams wrote: I have replaced the lines as suggested and now get the error: :[Error 2] The system cannot find the file specified I would be grateful for any further help. Thank you David williams 2008/7/11 <[EMAIL PROTECTED]>: ConnectRegistry seems not to be implemented in Python

Re: [PythonCE] ~Name not defined" error

2008-07-11 Thread taraiti
Hi, > aKey = OpenKey(HKEY_LOCAL_MACHINE, > r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run") > > I have replaced the lines as suggested and now get the error: > :[Error 2] The system cannot find the file > specified > > Any ideas? You have to double the backslash because it is interpreted

Re: [PythonCE] ~Name not defined" error

2008-07-11 Thread David Goncalves
Hi, aKey = OpenKey(HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run") I have replaced the lines as suggested and now get the error: :[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 :

Re: [PythonCE] ~Name not defined" error

2008-07-11 Thread taraiti
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\

Re: [PythonCE] ~Name not defined" error

2008-07-11 Thread alexandre . delattre
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\Ru

[PythonCE] ~Name not defined" error

2008-07-11 Thread taraiti
Hi, I have just installed PythonCE from SourceForge on a Windows Mobile 5.0 ARM PDA (HTC P3600). When I enter in the interpreter window import _winreg help(_winreg) I get a print out of the appropriate help. When I run this script by double clicking its file from _winreg import * print r"**