I am trying to move all pdf files in C:\
to E:\mypdf
I use this code:
For Each x In New DirectoryInfo("C:\").GetFiles("*.pdf", SearchOption.AllDirectories)
File.Copy(x.FullName, Path.Combine("E:\mypdf", x.Name), False)
Next
How can I ignore folders that require administrator privileges?