我禁用了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