I have some files that name are ABC-randomcode.zip
,ABC-randomcode.mov
and etc.
I use this code to find all file which started by ABC
but it does not work!
var textFiles = Directory.GetFiles("E:\\000", "*.*", SearchOption.AllDirectories).Where(s => s.StartsWith("foldername-"));
its not my problem . My target is to select some file that starts with a unique string like ABC
.