我禁用了UAC并在python中运行脚本。WindowsError:[错误740]即使在禁用UAC后,请求的操作也需要提升
command = "abcd.exe"
subprocess.Popen(command,stdout=subprocess.PIPE,stderr=subprocess.PIPE).communicate()
另外,我将应用程序abcd.exe
从其属性中设置为以admin身份运行。
然后我发现了以下错误:
WindowsError: [Error 740] The requested operation requires elevation
[从Python脚本中请求UAC提升?]的可能的复制(http://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script) – 2016-09-05 15:10:08