+1 vote

Hi everyone !

Today I use this to find my files:

var options = new RemoteSearchOptions("*.txt", false);
var items = client.Search(options);

but I'd like to find certain files that start with a string.

list of files:

XYZa123.txt
XYZ
b123.txt
ABCDa123.txt
ABCD
b123.txt
ABCD_c123.txt

In this list I would like to get only the files that start with ABCD.

How could I be doing this?

by (470 points)

1 Answer

+1 vote

Have you tried using "ABCD."?

var options = new RemoteSearchOptions("ABCD*.*", false);
var items = client.Search(options);
by (301k points)
...