In my idea... unless theres a component to do that... the only way is through recursive methods.
make a function that return a string. Look for folders in the starting folder and recall the same function with each sub-folder until you found your folder or that GetDirectories return no folder.
Youll have to make the algorithm
Make sure to have a stop condition... because youll get a stack overflow if you do a infinite loop.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.