Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Pete Sass
  Where is Pete Sass?
 Marathon, Ontario
 Canada
 Pete Sass
 To: Dan Baker
  Where is Dan Baker?
 Effort of the Poconos
 Pennsylvania - United States
 Dan Baker
 Tags
Subject: RE: Get a List of Files in Subdirectories?
Thread ID: 347794 Message ID: 393984 # Views: 59 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Friday, December 27, 2013 5:02:03 PM         
   


> Foxites:
>
> The ADIR() function gives me the subdirectory names when I supply the "D" attribute.
>
> However, what I need instead is info on all the files inside each subdirectory.
>
> The only way I can think of doing that is to go through the ugly process of accessing each subdirectory, CD..ing to it etc.   That's a lot of steps.
>
> Has anyone got a canned routine to do this?   Or is there a simple approach I'm not seeing?   Much appreciate.
>
> Dan B.


Hi Dan,

Guess you seen the routine in my copy/backup project example called FileSync.

The canned routine is:
* --- RecurseDir.prg
* --- Syntax: = RecurseDir("d:\Autoshop","*.*")

Pete "the IceMan", from the Great White North of Canada.
www.marathongriffincomputers.com

ENTIRE THREAD

Get a List of Files in Subdirectories? Posted by Dan Baker @ 6/21/2012 12:10:19 PM
RE: Get a List of Files in Subdirectories? Posted by Mike Gagnon @ 6/21/2012 12:18:52 PM
RE: Get a List of Files in Subdirectories? Posted by Anders Altberg @ 6/21/2012 12:27:35 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 6/21/2012 12:42:38 PM
RE: Get a List of Files in Subdirectories? Posted by Borislav Borissov @ 6/21/2012 12:39:24 PM
RE: Get a List of Files in Subdirectories? Posted by Bill Amidon @ 3/26/2014 10:54:51 AM
RE: Get a List of Files in Subdirectories? Posted by Cetin Basoz @ 6/21/2012 12:42:14 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 6/21/2012 12:44:10 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 12/19/2013 7:15:37 PM
RE: Get a List of Files in Subdirectories? Posted by Luis Maria Guayan @ 6/21/2012 4:44:42 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 6/22/2012 2:40:24 AM
RE: Get a List of Files in Subdirectories? Posted by Jun Tangunan @ 12/20/2013 1:30:01 AM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 12/20/2013 2:45:40 AM
RE: Get a List of Files in Subdirectories? Posted by Jun Tangunan @ 12/20/2013 8:14:24 AM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 12/20/2013 11:04:31 PM
RE: Get a List of Files in Subdirectories? Posted by Jun Tangunan @ 12/20/2013 11:36:56 PM
RE: Get a List of Files in Subdirectories? Posted by David Mustakim @ 12/21/2013 3:13:34 AM
RE: Get a List of Files in Subdirectories? Posted by Pete Sass @ 12/27/2013 5:02:03 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 12/27/2013 8:18:24 PM
RE: Get a List of Files in Subdirectories? Posted by Mohammad Irfan @ 3/27/2014 6:30:16 AM