On 2011.06.24 03:48 AM, Duncan Booth wrote: > http://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script Heh. On Windows 7, using 'runas' for the operation in os.startfile() gives me a normal UAC prompt.
Is there any way to ask for elevation from a subprocess.Popen() call? Launching an application that normally asks for elevation automatically fails with error 740 - 'The requested operation requires elevation'. The runas utility needs an explicit username. -- http://mail.python.org/mailman/listinfo/python-list