c# - Get all files on UAC protected directory -


this question has answer here:

i'm beginner in c# , want files , directory in documents , setting or desktop folder etc.

i've been trying disable uac on computer doesn't work, tried create manifest in vs 2012 , change "requestedexecutionlevel level" administrator no success. still "access denied" error.

how can these folders ? doing wrong ?

your application needs admin level privledges. it's best request them during start-up can done in config file:

   <trustinfo xmlns="urn:schemas-microsoft-com:asm.v2">     <security>        <requestedprivileges>           <requestedexecutionlevel              level="requireadministrator"           />        </requestedprivileges>     </security>  </trustinfo>  

taken from: http://code.msdn.microsoft.com/windowsdesktop/csuacselfelevation-644673d3


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -