Solved

VB.Net   Directory.GetFiles stops on denied access

Posted on 2013-06-16
1
493 Views
Last Modified: 2013-06-17
Hi Experts.  I am trying to get an array of all files in a directory with  Directory.GetFiles
When the code encounters denied access on a folder it cannot continue.

For Each currfile In Directory.GetFiles(CurrentPath, "*.*", SearchOption.AllDirectories)
Next

I know that there is no way for it to continue, but is there a way of adjusting the security requirements, or any way to continue?

Thanks for the help
0
Comment
Question by:PNRT
1 Comment
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39251444
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Maintain selection of the datagrdview 8 20
Expando 4 35
Create XML 5 34
Protecting vb6 & .Net code Obfuscation 18 56
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now