-----Original Message-----
| "Janet" <
[email protected]>
| Message | I do a lot of searching in a particular folder branch of
| my computer. But whenever I go into SEARCH (from the
| START menu), I have to click the LOOK IN drop-down, then
| click BROWSE, then go locate the folder. I want to add THAT
| folder to the initial list that you see when you first open the
| LOOK IN list. Any ideas?
In spite of a good bit of effort I have not found a way to add a
folder to the Look In list.
A clunky workaround...
Write a *.vbs script that opens Explorer to the folder, and uses
the SendKeys Method to open the Search Companion. Then put a
shortcut to the *.vbs file on the Start Menu (or another easily
accessible place) and use it instead.
For example, if the folder in question is E:\msWinXP, then...
Open Notepad. Copy the following 7 lines of script and paste it
into the window. Save the file an extension *.vbs. Put a
shortcut to the file in your Start Menu folder, then click it
instead of the default Search link.
Set oWsh = CreateObject("WScript.Shell")
Set oShell = CreateObject("Shell.Application")
oPath = "E:\msWinXP"
oShell.Explore oPath
WScript.Sleep 200
oWsh.SendKeys "{F3}"
Set oWsh = Nothing
For some information about the WSH SendKeys Method see:
MSDN Home | MSDN Library | Web Development
Scripting | Windows Script Technologies
Windows Script Host | Reference | Methods
Windows Script Host: SendKeys
http://msdn.microsoft.com/library/en- us/script56/html/wsMthSendKeys.asp
You can find peer-to-peer support for Scripting technologies in
the Windows Server Scripting newsgroup. The following page has
links you can click to access the newsgroup with your Web
browser, or with a Network News Transfer Protocol (NNTP)- based
newsreader such as Outlook Express.
Microsoft Windows Server 2003
Management Technologies Newsgroups
Windows Server Scripting
http://www.microsoft.com/windowsserver2003/community/news groups/management/default.mspx
Another workaround that I have found to work particularly well
for the way I use my computer (Windows Explorer and Internet
Explorer are almost always open. And I have less than 20
Internet Shortcut in my Favorites folder) is to...
Customize Windows Explorer and Internet Explorer so that they
have the following buttons: Folders, Search and Favorites. For
the folders that I search frequently I create a shortcut to them
in Favorites. Then all I have to do is ATL+TAB to bring
Explorer or Internet Explorer to the front. Click the toolbar
Favorites button. Click the link to the folder. Then click the
Search button.
Of course, I am a frequent user of the F3 key, too!
.