reproc icon indicating copy to clipboard operation
reproc copied to clipboard

Start process as Admin (Windows)

Open wolfv opened this issue 4 years ago • 2 comments

It seems that on Windows one can put an attribute to the StartInfo struct startInfo.Verb = "runas";

https://stackoverflow.com/questions/133379/elevating-process-privilege-programmatically

I am wondering if that could be added as a feature?

wolfv avatar Jun 16 '21 12:06 wolfv

Unfortunately, I don't have access to a windows system anymore so I wouldn't be able to test the implementation. I'll happily review a PR though. You can add an option to reproc_options that allows to configure this behavior.

DaanDeMeyer avatar Aug 07 '21 19:08 DaanDeMeyer