Skip to content

Instantly share code, notes, and snippets.

@yanmhlv
Created August 7, 2013 19:45
Show Gist options
  • Save yanmhlv/6177803 to your computer and use it in GitHub Desktop.
Save yanmhlv/6177803 to your computer and use it in GitHub Desktop.
запуск процесса под админом
import subprocess
subprocess.call(['runas', '/user:Administrator', 'C:/my_program.exe'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment