Hello all,

I am new to vb.net and I am having a problem.

I have to search a selection of drives for specific files, but whenever I get to a harddrive, the application experiences an path access exception, specificly, whenever the application attempts to search SYSTEM VOLUME INFORMATION, RECYCLE.BIN and other operating system directories.

I need a way to exclude them from the recursive search.

regards

Try using On error resume next in the beginning of the subroutine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.