Results 1 to 4 of 4

Thread: (Resolved)ShellExecute to FindFiles

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    276

    (Resolved)ShellExecute to FindFiles

    Hi,
    I am using the ShellExecute call to open the FindFiles Dialog. I am making the call thus (borrowed from Peet's contributions):

    VB Code:
    1. Private Declare Function ShellExecute Lib "shell32.dll" _
    2.        Alias "ShellExecuteA" _
    3.        (ByVal hwnd As Long, _
    4.         ByVal lpOperation As String, _
    5.         ByVal lpFile As String, _
    6.         ByVal lpParameters As String, _
    7.         ByVal lpDirectory As String, _
    8.         ByVal nShowCmd As Long) As Long
    9.  
    10. Private Const SW_SHOWNORMAL = 1
    11.  
    12. Private Sub Command1_Click()
    13.     Dim l As Long
    14.     l = ShellExecute(Me.hwnd, "Find", "E:/Jemmy", "", "", SW_SHOWNORMAL)
    15. End Sub

    The Find dialog appears. Now, When I give a search criteria, I need to get the results of this find in a recordset or Array or any other means for me to loop through the results and work around with it. Has anyone anything to suggest on this?

    Note: The above is the requirement. So I don't mind if thr's an alternative solution than using ShellExecute either.

    thanks,
    Jemima.
    Last edited by JemimaChadwick; Sep 26th, 2001 at 02:21 AM.

  2. #2
    jim mcnamara
    Guest
    Here is a good discussion and samples on find file. But as you read it, you'll see that you need a different strategy - find files doesn't return a value...

    http://www.mvps.org/vbnet/code/shell/findallfiles.htm

  3. #3
    jim mcnamara
    Guest
    Oh - and here is what I've found on .fnd file formats
    Attached Files Attached Files

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    276
    Jim...i cldn't find the way to capture the results here. But i got a post on the General VB Forums that gave it. Thanks anyways, Jim.

    - Jemima.

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