Tuesday, September 22, 2009

C# Directory.GetFiles(string, string)

I wanted to find files in a directory with a sub string in the name "obj".

There is a list of files in the directory ...0bj_????.xsd.

The way to do this is

Directory.GetFiles(path, "obj_*.xsd");

No comments:

Post a Comment