Search folder using wildcard in c#
By Super Man
Search folder/ directory using wildcard in c#
string dirs = Directory.GetDirectories(@"E:\", "wall*", SearchOption.AllDirectories);
foreach (string dir in dirs)
it will find directory whose name startswith "wall" in e:/ drive.
and in messagebox it will give you the full path of directory.
Search folder using wildcard in c# (1042 Views)