Control windows explorer and his function

  • Thread starter Thread starter Franck
  • Start date Start date
F

Franck

I'm basicly a Vb6 dev but i actually have to play around with c# alot
more. I have studied C# at school at beginner/intermediate level so i
understand the bases. I'm working on a project that i need to open
windows explorer on a folder X. That i managed to do it with :
System.Diagnostics.Process.Start(@"C:\blablabla\");
that work #1 but now another option need to be able to open a folder
like that but run a search starting at that root
for example the folder is c:\a\b\
and i want search all file name containing "es" in folder b
so windows explorer has to open and run the search and type "es" in
the box and click search
and it should return me any file containing "es" in the name either
begin/middle/end of the name like the normal search.

i can't control the windows explorer for security reason i guess but
there is maybe public api or function they let access too to do such
thing no ??

Thanks
 
Franck,

You can't control Explorer to open a search pane and start a search (as
far as I know), but you can get the same results that the search window
would produce by using the FindFirstFileEx, FindNextFile, and FindClose API
functions.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top