S
snafu too
Is there a way to start internet explorer and control whether the
favorites toolbar appears automatically
favorites toolbar appears automatically
Ramesh said:Brilliant, David. thanks.
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
"David Candy" <.> wrote in message
Set objShell = CreateObject("Shell.Application")
Set AllWindows = objShell.Windows
For Each window in AllWindows
msgbox window.locationname
a=window.ShowBrowserBar("{EFA24E61-B078-11d0-89E4-00C04FC9E26E}", True)
msgbox a
Next
ShowBrowserBar Method
Displays a browser bar.
object.ShowBrowserBar(sCLSID, vShow)Parameters
sCLSID Required. String value that contains the string form of the
CLSID of the browser bar to be displayed. The object must be registered as
an Explorer Bar object with a CATID_InfoBand component category. For further
information, see Creating Custom Explorer Bars, Tool Bands, and Desk Bands.
vShow Required. Variant that is set to TRUE to show the browser bar,
or FALSE to hide it.
Return Values
Variant. Returns TRUE if successful, or FALSE otherwise.
Remarks
You can display one of the standard Explorer Bars by setting sCLSID to its
CLSID string. The standard Explorer Bars and their CLSID strings are as
follows.
Explorer Bar CLSID string
Favorites {EFA24E61-B078-11d0-89E4-00C04FC9E26E}
Folders {EFA24E64-B078-11d0-89E4-00C04FC9E26E}
History {EFA24E62-B078-11d0-89E4-00C04FC9E26E}
Search {30D02401-6A81-11d0-8274-00C04FD5AE38}
See Also
IShellDispatch2 Object
Requirements
Version 5.00 and later of Shell32.dll
Windows NT/2000: Requires Windows 2000.
Windows 95/98/Me: Requires Windows Me.
Header: Declared in shldisp.h.
--
Ramesh said:I saw that thread in microsoft.public.windowsxp.basics
InvokeVerb method could also be used, isn't it?
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
"David Candy" <.> wrote in message
That last post was meant for another thread, how to open a specific folder
to search.
--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
Ramesh said:Thanks again David. Perhaps "ShowBrowserBar" is exactly what the OP
wanted.
--
Regards,
Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com
"David Candy" <.> wrote in message
news://msnews.microsoft.com/[email protected]
--
--------------------------------------------------------------------------------------------------
How to lose a war in Iraq
http://webdiary.com.au/cms/?q=node/1335#comment-48641
=================================================
"David Candy" <.> wrote in message
{C4EE31F3-4768-11D2-BE5C-00A0C9A83DA1}
is search for files.
objShell.Open "c:\somewhere"
For Each window in AllWindows
If CheckRegEntryForFullPathInTitlebar() = True then
If window.title="c:\somewhere" then
a=window.ShowBrowserBar("{EFA24E61-B078-11d0-89E4-00C04FC9E26E}", True)
else
If window.title="somewhere" then
a=window.ShowBrowserBar("{EFA24E61-B078-11d0-89E4-00C04FC9E26E}", True)
end if
Next
Will releiably open up search on a folder.
--