- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I have searched all over the web but still I can find no clue how to do what I need.
I need to determine if a folder exists in a specified root directory and then get it's FULL name. That is precisely the challenge. I have a folder set up for each year on drive "G:", so it would look like "G:\2017\", then inside of the 2017 folder I have each client folder including the client's country, city, and state. Here is the part I don't know; after the name and location is sometimes an additional suffix that I cannot guess.
An example of a folder name is, "G:\2017\MOUNT CANADA, BURLINGTON, ONTARIO, DIST". The suffix in this case tells me to interact with the distributor instead of directly contacting the client.
I need to find the fully qualified path from the portion of the folder name that I do know.
Example: I know this much, "G:\2017\MOUNT CANADA, BURLINGTON, ONTARIO"
But I need, "G:\2017\MOUNT CANADA, BURLINGTON, ONTARIO, DIST" to be returned from a search function.
I have not found any way to do it. I tried searching for the directory with a wcmatch but my attempts all failed.
Please help if you can.
All suggestion and/or advice is welcome. Thank you in advance.
Solved! Go to Solution.