I have made a application that can copy files to places in two TreeViews and that has to map your C:. But my father, an experienced programming, said that if the program goes wrong, it could mess up the whole C: of my consumers (I will be publishing this, it is not already out). And as a user, you have to run as admin. How do I make the copy and delete transactions safer (I already have a "Are you sure you want to delete the files?" MessageBox). And how do I make it so that everyone has permission to browse the C:?
Aparently this line of code give me an "UnauthorizedAccessException "
DirectoryInfo[] dirSubs = dir.GetDirectories();