We help IT Professionals succeed at work.
Get Started

Parse directories and get info from folder names

Last Modified: 2013-11-11
Ok my folders are like this IE:

                              |___________> More like above all the way to 1990
     There are also folders that are Dodge, Chevy, Toyota and just about every car you can think of

   Most folders will span 20 years ... 1990 to 2010
HOWEVER, some Models do not span that many years they may only span for example
from 2000 to 2005 and so on

What I need is this

  I have 3 comboBoxes
If user for example selects the following;

cbYear.text = "2007" then selects cbMake.Text = "Ford"

Once year and make are selected then the directories I described would be parsed so that

cbModel would only display all Ford models that existed in 2007

Now maybe parsing directories each time is not efficient and it might be better to parse the directories once and create an XML file with all the needed info in them

This would be fine as I know how to parse xml just fine and would allow me to add other data for specific vehicles as needed

But I havent a cluse how to parse directory folder names and get the info fro them to create an xml so I might have access to the info

ANy examples of how I might go about this or accomplish this

Personally it seems more logical to put into an XML file but I really dont know ... I need help here

Watch Question
Distinguished Expert 2017
This problem has been solved!
Unlock 1 Answer and 25 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE