Python WindowsError:[错误740]即使在禁用UAC后,请求的操作也需要提升

Python WindowsError:[错误740]即使在禁用UAC后,请求的操作也需要提升,python,windows-8,uac,elevation,Python,Windows 8,Uac,Elevation,我已禁用UAC并用python运行脚本 command = "abcd.exe" subprocess.Popen(command,stdout=subprocess.PIPE,stderr=subprocess.PIPE).communicate() 此外,我还将应用程序的属性设置为以管理员身份运行 然后我得到以下错误: WindowsError:[错误740]请求的操作需要提升 我认为问题在于使用subprocess.Popen 我也认为你的问题已经在这里得到了回答: 我认为问题在于使用s

我已禁用UAC并用python运行脚本

command = "abcd.exe"
subprocess.Popen(command,stdout=subprocess.PIPE,stderr=subprocess.PIPE).communicate()
此外,我还将应用程序的属性设置为以管理员身份运行

然后我得到以下错误:

WindowsError:[错误740]请求的操作需要提升


我认为问题在于使用subprocess.Popen

我也认为你的问题已经在这里得到了回答:
我认为问题在于使用subprocess.Popen

我也认为你的问题已经在这里得到了回答:

您可以尝试使用:

subprocess.call(["abcd.exe"], shell=True)
基本上这里的重要部分是
shell=True
;如果设置为False,则会出现以下错误

WindowsError:[错误740]

您可以尝试使用:

subprocess.call(["abcd.exe"], shell=True)
基本上这里的重要部分是
shell=True
;如果设置为False,则会出现以下错误

WindowsError:[错误740]

感谢您的回复:)中的解决方案对我有效..感谢您的回复..:)中的解决方案对我起了作用