I am running the following script from the Windows 7 command prompt with administrator privileges:
import win32com.client import time import SendKeys import os from ctypes import * shell = win32com.client.Dispatch("WScript.Shell") os.startfile("C:\...exe")
I also assigned the function "Run this program as administrator" to python.exe under "Properties"> "Compatibility"> "Privilege Level". It didnβt change anything.
The program still behaves differently when it opens in the way it behaves, when I simply open it with a double click on the screen. Did I miss some important bit here? Will the called process start in this way, as if it were started with administrator privileges?
Thanks for your help in advance!
Greetings -
Pat
source share