CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #1
    Join Date
    May 2007
    Posts
    5

    [RESOLVED] Step by Step File Searching

    I'm working on a PCAnywhere OLE Automation program and basically I want to be able to sift through the thousands of host files that we use to connect to remote machines.

    I came up with a slick and cheater way of sorting the file names in the network drive so that I can find them pretty easily:

    Code:
    Private Sub searchBox_Change()
        Dim tempStr As String
        Dim tempFType As String
    
        fileList.Path = "M:\cknapp\pcAW"
        tempStr = searchBox.Text + tempStr
        tempFType = "*.chf"
        fileList.Pattern = tempStr + tempFType
        fileList.Refresh
        MsgBox (fileList.Pattern)
    End Sub
    This basically uses the filelistbox to eliminate possibilities by refreshing the Pattern element of the fileList object.

    What I want it to do on top of this is search the subfolders that contain more remote files, is there an easy way to do this?
    Last edited by phimuskapsi; July 26th, 2007 at 01:17 PM. Reason: Wanted Notfications

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

Featured