Is there a way in .net to do any of the following:
Check if the directory or file is accessible to the program so I don't have to have a try catch for every file/directory access attempt.
Ask the user for permission or admin access to only read the content of the particular file/dir.
I'm writing a multi-threaded duplicates and empties finder and while I imagine there's an easy way to tell VS2008 to run this program as an administrator, i'd rather learn some of the more efficient and safe ways to do it( asking for the bare minimum permissions I need, instead of a blanket do all).