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.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.