Results 1 to 40 of 43

Thread: VB.Net: Recursive File Searching...

Hybrid View

  1. #1
    New Member
    Join Date
    Mar 2009
    Posts
    1

    Re: VB.Net: Recursive File Searching...

    Lol, I signed up just so I could help sbasak out but you already beat me to it Rossonero

    ..but now I'm wondering, how would one accomplish the same thing using ABX's modifications. That is, not searching deeper then the directory specified ?

    anyone know ?

  2. #2
    Fanatic Member sbasak's Avatar
    Join Date
    Aug 2001
    Location
    Globe Trotter
    Posts
    524

    Re: VB.Net: Recursive File Searching...

    Yes, I was looking for a modification in original code.

    In the original Search function, I tried putting a 3rd parameter for absurd directory name like "QQQQQ" to look for only those directories (thus skipping normal sub directories) but it didn't work.

    eg. x.Search("F:\Windows", "*.doc;*.txt", "QQQZZZ")

    Also System.IO.Directory.GetFiles(dir, filetype) can't search for multiple wildchars as in ABX's function.

    GetFiles has a 3rd parameter which tells whether to search inside sub-directories as well. But it can't interpret multiple wildchars!
    Last edited by sbasak; Mar 10th, 2009 at 05:12 AM.
    Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
    Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.

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