> Surely this isn't that hard:
>
> I'm trying to create a routine which is recursive across the entire
> directory structure on a designated drive (from the root directory
> through every folder on the drive - system, hidden, the lot).
>
> And I'm getting, when I try:
>
> directoryinfo.getdirectories
>
> on a system folder, the dreaded "unauthorized access exception." I
> have set the UAC settings to "requireAdministrator" as one post
> suggested. I am running as an administrator (I'm the only user of this
> computer). Some posts suggest "impersonation" - but I haven't found an
> easy explanation of what this is all about.
>
> Who do I have to kill to get past this? Please help?
You shouldn't need to go down impersonation or UAC routes if you're running
as administrator.
What "system" folder are you talking about here?
Also Could you post the code/function?
--
Mike
GoTinker, C# Blog
http://www.gotinker.com