python - WindowsError: [Error 740] The requested operation requires elevation even after disabling UAC -


i have disabled uac , running script in python.

command = "abcd.exe" subprocess.popen(command,stdout=subprocess.pipe,stderr=subprocess.pipe).communicate() 

also, set application abcd.exe property run admin.

then i'm getting following error:

windowserror: [error 740] requested operation requires elevation

you try using:

subprocess.call(["abcd.exe"], shell=true) 

basically important part here shell=true; if set false, following error.

windowserror: [error 740]


Comments

Popular posts from this blog

c# - Can I intercept a SOAP response in .NET before a content type binding mismatch ProtocolException? -

python - Terminate a gnome-terminal opened with subprocess -