|
-
Aug 2nd, 2010, 07:30 AM
#1
Thread Starter
Addicted Member
Search files (access denied)
I've tried various methods to search for files, but each time I encounter a "acces denied" error, which stops the search.
Is there a way to scan for files, and skip the files it doesn't have access to, or force access to it?
I want to gather all exe's on a specific drive.
This works, when there are no restricted files/paths
Dim searchResults As String() = Directory.GetFiles(cboDrives.Text, "*.exe", SearchOption.AllDirectories)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|