I am writing a program to get stored proc’s from xml files. I have the program running on one file. But i need to run it on multiple files. The problem is I find the correct xml files in a large directory.
For example, the path could either be
C:\DevStore\com\dev\Store\sql\store.xml
or
C:\Store\com\dev\DevStore\sql\store.xml
so on….
So, for the above example i can either have DevStore or store, in three possible places.
How can i make the file path use either DevStore or any substring of DevStore in these three place?
I am sorry if the question is unclear, I wasn’t sure how to word it. Thanks in advance!
Here is some code that you can start your work.
My class design is not the best one, but as I said, you can start by the code above.