Deepanshu Mehta

Deepanshu Mehta

  • NA
  • 33
  • 2.8k

need to use some specific files from each folder of a dir.

Sep 10 2017 7:18 PM
hi, 
 
I have two directories, and every directories represent the data acquired from a software, with thesame names of folders and files name. i wanna use these files to compare with each other.  
 
What i need is a function or a method, which can get me some files based on their names, one i select the folder.
 
I used FolderBrowseDialog, to select the folder and used openfileDialog to open the files,
but instead of openfiledialog i would need another function that can automatically select particular files of that folder.
 
I had tried Directory.getfiles but can i select the files that i need based on their names(files).any filter that i can use.
 
 

Answers (6)