Re: searching recursively through directories
From: Ken Halter (Ken_Halter_at_Use_Sparingly_Hotmail.com)
Date: 09/28/04
- Next message: Igor Mendizabal: "Re: Which version of a componente (OCX) am I executing?"
- Previous message: mark_at_bdk: "VB4 on Windows 2000"
- In reply to: Joe: "searching recursively through directories"
- Next in thread: Larry Serflaten: "Re: searching recursively through directories"
- Messages sorted by: [ date ] [ thread ]
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..
- Next message: Igor Mendizabal: "Re: Which version of a componente (OCX) am I executing?"
- Previous message: mark_at_bdk: "VB4 on Windows 2000"
- In reply to: Joe: "searching recursively through directories"
- Next in thread: Larry Serflaten: "Re: searching recursively through directories"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|