Recursive search method in c# -


I have now decided not to keep this report in the form of embedded resources in the application, and they are located locally on the server Have decided to move. The advantages are clear, but considering that I want to organize the directories in a clear way (general report, letterheads etc.) When I call a recurring search method, I only need a way to load reports by name. My plan is to use the cache which can be created at the beginning of the application and then can search in a list or use a method that searches for the name of the report every time ... Finally, any ideas and examples are welcome with the code (C #)!

The folder structure might look like:

\\ webserver \ report (report files with unique names)

\\ webserver \ reports \ General (report

\\ webserver \ reports \ manager1 (report files with unique names)

\\ webserver \ reports \ manager 1 \ invoices (files with unique names Report)

\\ webserver \ reports \ managerN (unique files report files)

This can be useful for example! Thanks!

If you Want to find a recursive directory for a specific extension:

  var d = new DirectoryInfo ("\\\\ webserver \\" reports); Var file = D.GetFile (".rpt" , Searchoptions, all directories);  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -