I am trying to move a folder from one directory to another using this
System.IO.Directory.Move(tempPath, newFolder);
I am Administrator on my computer, so I should have full access. I cannot figure out why I get this exception once every two trying.
Access to the path 'D:\<myDirectory>' is denied.
Just because you're admin doesn't mean you can access everything. Among the things you can't necessarily access: