Ask Your Question

Start debug to run as Administrator on Windows

asked 2020-06-29 11:01:17 -0500

qwerty_ww's avatar

updated 2020-06-29 13:22:48 -0500

I wondered whether it's possible to start a python script as Administrator on Windows (in order to manipulate the registry).

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-29 11:04:21 -0500

qwerty_ww's avatar

updated 2020-06-29 13:24:15 -0500

Right after asking I found a simple solution:

  • Make a copy of python.exe and name it pythonAdmin.exe (or whatever)
  • In the properties/compatibility tab set Run as Administrator

Now you can choose this executable as Python Executable in Project Properties or the launch configuration in Wing.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2020-06-29 11:01:17 -0500

Seen: 940 times

Last updated: Jun 29 '20