Results 1 to 6 of 6

Thread: ShellExecute (One for the Guru's)

  1. #1

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185

    Question ShellExecute (One for the Guru's)

    I'm using the ShellExecute API to show the Windows Find All Dialog.
    (See http://support.microsoft.com/support...n_SRCH&SPR=VBB)

    In Windows 2000 the Look In combo is defaulted to Local Harddrives.

    How can I default the Lookin Combo to Local Harddrives?


    Thanks in advance

  2. #2
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    which drive did you want it to default to, I changed this code from :

    Call ShellExecute(Me.hwnd, _
    "find", _
    dir1.path, _
    vbNullString, _
    vbNullString, _
    SW_SHOWNORMAL)

    to

    Call ShellExecute(Me.hwnd, _
    "find", _
    "c:\", _
    vbNullString, _
    vbNullString, _
    SW_SHOWNORMAL)

    and this defaulted the find dialog to my c drive, I spose you could do a GetLogicalDriveStrings or something, filter out the fixed drives, and build a combo with only those in, and allow the user to select off the back of that....
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  3. #3
    Fanatic Member crispin's Avatar
    Join Date
    Aug 2000
    Location
    2 clicks west of a Quirkafleeg...Cornwall, England
    Posts
    754
    Aha I get you now, you want it to default to all local hardrives - I'll plug my brain in a sec.....
    be right back.....
    Crispin
    VB6 ENT SP5
    VB.NET
    W2K ADV SVR SP3
    WWW.BLOCKSOFT.CO.UK

    [Microsoft Basic: 1976-2001, RIP]

  4. #4

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185

    Thumbs up

    Sorry crispin I should of explained it better, and yes you're right I want to default the Lookin Combo to All Local Harddrives.


  5. #5
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253

    Shell Execute

    I would't use the ShellExecute function. I would look into the CreateProcess function as this allows far more control on what you are loading, and how it is loaded

  6. #6

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185
    How do I load and show the Find All dialog using the CreateProcess API yrwyddfa?

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