On 01/05/2010 15:44, News123 wrote:
Hi,
I have a small python script, which has been started as normal non
privileged user.
At a later point in time it would like to start another python script
with elevated privileges.
How can I write my code such, that I will get the privilege elevation
prompt and I can start a sub process / python function with elevated
privileges.
The canonical way is to use the "runas" verb from within
ShellExecuteEx, which is exposed by the win32api module.
TJG
--
http://mail.python.org/mailman/listinfo/python-list