DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Crispin Wright Guest

    Find Dialog - Set the "Look In" path.....


    I can use ShellExecute to set the look in path on the Find Files Dialog, but
    I can't set it to either the "My Computer" item, or the "Local hard drives"
    item. I tried passing it index values, CLSIDS, all manner of strings, i.e.
    "C:\,D:\" "C:,D:" "(C:;D" "C:;D:" "Local hard drives" e.t.c e.t.c But
    (obviously) I can't find the way....Any help may prevent hair loss - Thanks
    heres the code im using (without decs as i'm sure you've all seen this before)

    Debug.Print ShellExecute(Me.hwnd, _
    "find", _
    "(C:;D" & vbNullChar, _
    vbNullString, _
    vbNullString, _
    SW_SHOWNORMAL)



  2. #2
    Klaus H. Probst Guest

    Re: Find Dialog - Set the "Look In" path.....

    Crispin,

    Didn't check it, but have you tried separating elements with a null
    (Chr$(0)) character? If you do that, also add two nulls to the end of the
    string.
    Some APIs work like that.


    --
    .. . . . . . . . . . . . . . . . . . . . . .
    Klaus H. Probst, MVP
    http://www.vbbox.com/


    Please post/reply to the newsgroup(s)


    "Crispin Wright" <crispin@freediver.co.uk> wrote in message
    news:3b85277c$1@news.devx.com...
    >
    > I can use ShellExecute to set the look in path on the Find Files Dialog,

    but
    > I can't set it to either the "My Computer" item, or the "Local hard

    drives"
    > item. I tried passing it index values, CLSIDS, all manner of strings,

    i.e.
    > "C:\,D:\" "C:,D:" "(C:;D" "C:;D:" "Local hard drives" e.t.c e.t.c But
    > (obviously) I can't find the way....Any help may prevent hair loss -

    Thanks
    > heres the code im using (without decs as i'm sure you've all seen this

    before)
    >
    > Debug.Print ShellExecute(Me.hwnd, _
    > "find", _
    > "(C:;D" & vbNullChar, _
    > vbNullString, _
    > vbNullString, _
    > SW_SHOWNORMAL)
    >
    >




  3. #3
    Klaus H. Probst Guest

    Re: Find Dialog - Set the "Look In" path.....

    Crispin,

    Didn't check it, but have you tried separating elements with a null
    (Chr$(0)) character? If you do that, also add two nulls to the end of the
    string.
    Some APIs work like that.


    --
    .. . . . . . . . . . . . . . . . . . . . . .
    Klaus H. Probst, MVP
    http://www.vbbox.com/


    Please post/reply to the newsgroup(s)


    "Crispin Wright" <crispin@freediver.co.uk> wrote in message
    news:3b85277c$1@news.devx.com...
    >
    > I can use ShellExecute to set the look in path on the Find Files Dialog,

    but
    > I can't set it to either the "My Computer" item, or the "Local hard

    drives"
    > item. I tried passing it index values, CLSIDS, all manner of strings,

    i.e.
    > "C:\,D:\" "C:,D:" "(C:;D" "C:;D:" "Local hard drives" e.t.c e.t.c But
    > (obviously) I can't find the way....Any help may prevent hair loss -

    Thanks
    > heres the code im using (without decs as i'm sure you've all seen this

    before)
    >
    > Debug.Print ShellExecute(Me.hwnd, _
    > "find", _
    > "(C:;D" & vbNullChar, _
    > vbNullString, _
    > vbNullString, _
    > SW_SHOWNORMAL)
    >
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links