madelson / MedallionShell

A .NET library simplifying the execution and chaining of processes
MIT License
415 stars 32 forks source link

The requested operation requires elevation #115

Open Bartleby2718 opened 6 months ago

Bartleby2718 commented 6 months ago

If you run the following code in LINQPad (on Windows):

Command.Run(@"C:\Windows\System32\osk.exe").Wait();

you get:

Win32Exception: An error occurred trying to start process 'C:\Windows\System32\osk.exe' with working directory '...'. The requested operation requires elevation.

at this line.

Should the consumer catch Win32Exception?