I am not looking for specific files but rather specific directories to index all files in those directories. I am aware of how to search for file types and names but not how to do that with directories for indexing.
How to scan several drives for specific directories?
74 views Asked by MikeBravo At
2
There are 2 answers
0
On
I was able to get the path of each logical drive to begin my search by adding System.IO.DriveInfo.GetDrives();
and storing the resulting list then passing those strings into the answer by Charles
Try something like this: (as taken from MS code examples)
I would simply modify to only get the files once you are in the directory you want to be looking in.