yeeen yeeen - 1 year ago 102
C# Question

How do I search for a list of files using wildcard

How do I use wildcards in C# to list down files contained in a selected folder?

Answer Source

Directory.GetFiles is your friend here:

Directory.GetFiles(@"C:\Users\Me\Documents", "*.docx");

or, recursively:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download