Using C# (.NET), how can I search a file system given a directory search mask like this: (?)
\\\\server\\Scanner\\images\\*Images\\*\\*_*
For e
Like this:
Top Level Directories:
//get Top level
string[] TopLevel = Directory.GetDirectories(path);
And then you will have to do a resursive function of this folders using wildcard pattern, for example:
// Only get subdirectories that begin with the letter "p."
string pattern = "p*";
string[] dirs = folder.GetDirectories(path, pattern);
I suggest you play with wildcards to get the array output and you will figure out which is the best way, if using resursive function or directly quering paths.