Click here to Skip to main content
15,881,027 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
how to read a folder files and also same time excelfile and finding the names of files with comparing to folder files and check it if found message display true else messsage display false.
Posted
Comments
Lakamraju Raghuram 12-Apr-12 0:02am    
You should have used 'Improve question' rather than posing a new question

1 solution

This sounds like homework, so I won't give you code!

It's pretty easy though:

1) Read the files from the folder (use the Directory.GetFiles[^] method)
2) Read the data from your excel file (use ODBC to connect and read the file)
3) Sort the file names in both lists.
4) Compare the lists.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900