Re: How to launch an instance of InternetExplorer that displays the "Folders" 'Explorer Bar' ?

From: Larry Serflaten (serflaten_at_usinternet.com)
Date: 09/27/04


Date: Mon, 27 Sep 2004 09:03:56 -0500


(Follow up in : microsoft.public.vb.winapi )

"TC" <getmyemails2@yahoo.com> wrote

>
> I am trying to launch an instance of 'InternetExplorer' that also displays
> the "Folders" option of the "Explorer Bar"?
>
> I was also wondering if there is a way to actually select a specific file
> that will display as the default selection within the folder shown?
>

Its not an exact science, but you might try calling Explorer itself:

Dim sysdir As String
Dim cmd As String
  
  ' Call explorer
  cmd = "explorer "
  
  ' Give it a file to show
  sysdir = Environ("windir")
  cmd = cmd & """" & sysdir & "\explorer.exe"""
  
  ' Tell it to select that file
  cmd = cmd & ", /select"

  Shell cmd, vbNormalFocus

HTH
LFS



Relevant Pages