reproc
reproc copied to clipboard
Start process as Admin (Windows)
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?
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.