How can i find a file that stored in specific folder in a hard drive?
For example, I have file named 171_s.JPG
I need to find the file by its partial name, i.e. 171_s.
Any idea how can i implement this?
Thank you in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, use
Directory.GetFiles. For example, to search the entire hard disk with the labelC:or if you know the specific directory and only want to search that directory: