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
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
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 :
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\
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
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"**