w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
C# get external shell command result as administrator

You could use MT.exe which is a utility provided by the framework ( In the SDK sub-directory ) to generate a manifest that forces your application to run in administrator mode. In which case you shouldn't have problem dealing with your protected service. The trade off of course is that ... you're running in admin mode.

mt.exe -manifest "your-pathyour-app.exe.manifest"
-updateresource:"$(TargetDir)$(TargetName).exe;#1

Hopefully this helps.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.