There must be dozen of examples on the net on how to loop through directories.
First Google result:
How to: Iterate Through a Directory Tree (C# Programming Guide)
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP