Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting list or table of all files in directory/subs
Message
 
 
To
04/06/2003 08:45:33
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00796080
Message ID:
00796113
Views:
15
Hi Renoir,

I guess you're using VFP6 and 'AS' clause was introduced in VFP7. You can safely remove 'AS' clause from the LOCAL commandd.
	local oFSO, lni, oFolder, oSubFolder, lvar
>Thanks Sergey! I started with George's but was getting an error in the LOCAL statement so I gave David's a try and it worked great for what I needed.
>
>Renoir
>
>>>What is the easiest way to get a list or table of all the files (*.*) contained in a directory and subsequent subdirectories? I'm working on a project that is poorly structured and there are multiple copies of files and I want to determine the duplicates. Is using ADIR my best bet? Is there a Windows NT solution? Thanks!
>>>
>>>Regards, Renoir
>>
>>There's a couple ways to do that. You can use ADIR() as shown at http://fox.wikis.com/wc.dll?Wiki~RecursionInVFP~VFP or WSH Re: A Friday Tip Thread #633356 Message #633428
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform