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--