Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR() takes a long time.......
Message
From
10/02/2005 16:52:39
 
 
To
10/02/2005 14:21:23
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Miscellaneous
Thread ID:
00985702
Message ID:
00985780
Views:
24
>Hello everyone....
>
>I am executing an ADIR on a directory over the network that contains thousands and thousands of files. Is there a way to get the ADIR to only return files that have been created/modified since a certian date/time? This should help to not put so much demand on the network with the amount of data that is associated with just trying to get a list of files. Any suggestions would be appreciated.
>
>Thanks in Advance,
>Baron

Might be slower but you could try it
lc_file = SYS(2000, '*')
? FDATE(lc_file)
DO WHILE .NOT. EMPTY(lc_file)
   lc_file = SYS(2000, '*', 1)
   IF NOT EMPTY(lc_file)
     ? FDATE(lc_file)
   ENDIF
ENDDO
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform