0

I want to list a hidden and secure folder of my C drive, but I always get a System.SystemException: Access to the path 'c:\\HiddenFolder' is denied.

I am searching for C# code where I can set myself as Administrator or gain access to the hidden and secure folder.

Cyclonecode
  • 29,115
  • 11
  • 72
  • 93
EMerckx
  • 182
  • 1
  • 10
  • possible duplicate of [Access to path \*\*\*\* is denied](http://stackoverflow.com/questions/10650528/access-to-path-is-denied) – Tarec Feb 12 '14 at 15:56
  • Did you start VisualStudio/your program with Right Click -> Run as administrator? – Pierre-Luc Pineault Feb 12 '14 at 15:57
  • Well, either you have to run the application as administrator, or you have to acquire privileges during runtime. If you don't have administrator access in the first place, you're out of luck (and you're not going to get help here - this is not a hacker forum). – Luaan Feb 12 '14 at 15:57
  • You can force your app to run with admin rights by editing the app manifest Have you tried to run your app as adminitrator ? How to force my .NET App to run as administrator on Windows 7?:http://stackoverflow.com/questions/2818179/how-to-force-my-net-app-to-run-as-administrator-on-windows-7 – Allende Feb 12 '14 at 15:57
  • The "Run as administrator" worked, but I implemented the manifest and it works also, thanks ! – EMerckx Feb 12 '14 at 16:26

0 Answers0