Solved

Accessing the Windows Search from VB

Posted on 2003-10-22
5
395 Views
Last Modified: 2006-11-17
Anyone have a code sample of calling the windows search function from VB?

This would be the same as clicking START/FIND/FILES and FOLDERS, typing in the search criteria and clicking the SEARCH button.

Basically I want the user to be able to type in some text in a box and when they click search, my program would launch the search function as if the user did all the steps listed above. I would provide the start path and pass along the information the user typed in.

The other solution would be for me to just walk down the directory tree myself in the code but since I don't actually do anything after the search I am thinking calling the windows search would be a better solution.
0
Comment
Question by:schworak
  • 2
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
Richie_Simonetti earned 250 total points
Comment Utility
Please, delete this and use Reload This question Link instead of push Refresh button from your browser, it submmit the data again.
Cheers
0
 

Expert Comment

by:fishage
Comment Utility
0
 
LVL 16

Expert Comment

by:Richie_Simonetti
Comment Utility
The real thread is another Q. This is a duplicate one.
0
 

Expert Comment

by:fishage
Comment Utility
Sorry, didn't notice that.  Looks like we both found the same place though.
0
 
LVL 27

Expert Comment

by:planocz
Comment Utility
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from schworak from 10/24/2003 comment
Award points to fishage is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now