Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Getting the admin rights in C#

$
0
0
Hello everyone,


My application programmed in C# copy, move, and create files.... but if the user choose to use it on the disc where windows is installed, the process have to have the admin rights. (Otherwise : Access denied)

The current solution is that the user has to run the application "as Administrator". But it would be more friendly to ask for the admin rights even if the user has no checked the "Run as admin".

Question :
How could I ask for admin rights before my application is launched by the user ?

Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>