troubleshooting Question

Retrieve all files from Windows based folder structure with random folder depth-- VB.NET 2012

Avatar of abcserve
abcserveFlag for United States of America asked on
Visual Basic.NET
4 Comments2 Solutions107 ViewsLast Modified:
I need to retrieve files from a directory/folder structure that has files and folders at extreme ends of folder depth.  All folders will start with (as an example)...H:\Staging\Acquistion_Staging\.....Folder depth after this initial start are anywhere between 1 and 8 folder levels deep.  A mix of files and folders may be at the same folder level.  I can retrieve/process files when I know the folder depth and when files are at the same level as as the known folder level.  The situation I am in has over 7500 files in over 950 folders where the folder depth is inconsistent (ranging from 4 to 11 levels deep).  What I am trying to determine is how I can automatically retrieve a file when I do not have a known folder depth. Is there a way determine the depth of any given folder?  Any direction on this is appreciated.
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros