Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search file
Message
From
03/08/2004 10:28:10
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00930341
Message ID:
00930349
Views:
10
HINT:

In each dir you're in (say F: to start) you can use ADIR() to get an array of folders IN that folder, e.g:
lnNoFolders = ADIR( laFolders, '', 'D')
Within a folder loop( using CD to get into each), you can use ADIR() to get the files, and sub-dirs (as above), e.g:
...
lcDirfile		= ALLTRIM( laFolders( lnFolderNo)) + '\*'
lnNoFiles 	= ADIR( laFiles, lcDirfile)
...
HTH

Terry

>Hi all, tell me somebody how I can scan one (or more - network) disc and lookup all files named eg. "config.fpw".
>I try FindFirstFile in API, but I don't understand using this.
>P.S. Function ADIR is good only for one dir.
>
>Many thanks.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Previous
Reply
Map
View

Click here to load this message in the networking platform