Re: searching recursively through directories

From: Ken Halter (Ken_Halter_at_Use_Sparingly_Hotmail.com)
Date: 09/28/04


Date: Tue, 28 Sep 2004 08:11:02 -0700

Joe wrote:
> I am writing some code to locate files (exe's, dll's, etc) in a given root
> directory and its subdirectories. For the most part I've been successful.
> The problem that I am having is on the line tFile = Dir$ in the GetFiles
> subroutine below.
>

Dir can't handle recursion very well. imo, it's best to use the code
that's already built into the OS...

Here's the basics (link below)... see the 'Related:' section for links
to more advanced topics.

Performing Recursive Searches Using FindFirst and SearchTreeForFile
http://vbnet.mvps.org/index.html?code/fileapi/recursive.htm

-- 
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..


Relevant Pages

  • Re: defending the enhlish language
    ... I have a question for Joe: Do you want me to fix your leaky toilet? ... Most of the writers I know work every day, ... Writing is hard, ... some of them print garbage so they can buy more garbage. ...
    (soc.retirement)
  • Re: Monologue for Creative writing Class
    ... story of Joe Blow by Joe Blow, ... cannot be published without my permission, usually in writing. ... the basic protection is to put the following words on every copy: ... Once you have a common law copyright, the proof of right-to-use is on ...
    (rec.pets.cats.anecdotes)
  • Re: Fiction writer needs expert crypt insight
    ... Joe Peschel wrote: ... > Shakespeare was writing, for the most part, poetry. ... > awkward about my paragraph. ... punctuation flames were not your finest hour. ...
    (sci.crypt)
  • Re: nfs, trusted users
    ... >>> overwriting the root password. ... >> How about using your exports lists to control ... if you want joe to also be able to access ... Users can then set file access permission ...
    (comp.os.linux.security)
  • Confessions of a Chronic Masturbator
    ... I, Joe, am a pathetic little slave. ... I am writing this because I have some ... masturbate, I sometimes do it with a mouth full of my own urine. ... continued to write this letter of confession. ...
    (soc.culture.singapore)