I want to search a directory for all files that match a certain pattern. Surprisingly, I have not had to do this since vb6 (Dir)... I'm sure things have changed since then!
-Thanks
I want to search a directory for all files that match a certain pattern. Surprisingly, I have not had to do this since vb6 (Dir)... I'm sure things have changed since then!
-Thanks
use SearchOption.AllDirectories parameter:
using System.IO;
Directory.GetFiles(@"C:\", "*.mp3", SearchOption.AllDirectories);