2

I am using the shutil module to delete a folder of windows7, however I would need Python to delete the folder using different credentials from the ones currently using the machine. Is it possible to set it to somehow the delete with different credentials?

martineau
  • 119,623
  • 25
  • 170
  • 301
Gonzalo
  • 1,084
  • 4
  • 20
  • 40
  • Does this help: https://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script ? – BlackJack Oct 18 '16 at 16:01

1 Answers1

0

Run the python script using Windows Task Scheduler; there it's possible to run the code using different credentials.

Gonzalo
  • 1,084
  • 4
  • 20
  • 40