System.UnauthorizedAccessException: Access to the path denied
I am trying to launch automatically my application when I turn on the computer. I’ve wrote this program into my code :
I am trying to launch automatically my application when I turn on the computer. I’ve wrote this program into my code :
I have a web application which is importing DLLs from the bin folder.
I’m having trouble getting command line arguments passed to Python programs if I try to execute them directly as executable commands from a Windows command shell. For example, if I have this program (test.py):
from _winreg import * """print r"*** Reading from SOFTWAREMicrosoftWindowsCurrentVersionRun ***" """ aReg = ConnectRegistry(None,HKEY_LOCAL_MACHINE) aKey = OpenKey(aReg, r"SOFTWAREMicrosoftWindowsCurrentVersionUninstall") for i in range(1024): try: asubkey=EnumKey(aKey,i) val=QueryValueEx(asubkey, "DisplayName") print val except EnvironmentError: break Could anyone please correct the error…i just want to display the “DisplayName” within the subkeys of the key the HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall This is the error … Read more