Results 1 to 3 of 3

Thread: How do I launch explorer from my Visual Basic application ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Posts
    5

    How do I launch explorer from my Visual Basic application ?

    I can launch the explorer using the following command:

    Public Function StartExplorer(Path As String) As Long

    Dim Scr_hDC As Long
    Scr_hDC = GetDesktopWindow()

    StartExplorer = ShellExecute(Scr_hDC, "Open", Path, _
    "", "C:\", SW_SHOWNORMAL)

    End Function

    where Path is C:

    But how do I get the sidewindow which lists all the folders to appear ?

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    Shell "explorer.exe /n,/e,C:\", vbNormalFocus

    does the same thing but no API
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2002
    Posts
    5
    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width