Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to copy all the files tif files from one folder to a
Message
From
31/08/2004 18:04:27
 
 
To
31/08/2004 17:59:21
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00938220
Message ID:
00938235
Views:
18
>Hello Fred,
>
>I have 34 different folders which has the tiff files in it to copy all the files from them to one single location.
>So i copy the first and then go to the next folder and copy them like that until i finsh all the 34 folders.
>
>Is there a way for me to know, the first folder tiff files are copied to the location now copy the second folder tiff files.
>Because if the first copy is in progress then i don't want to start the second set of files.
>
>Is it possible for me to know via program the the copy process is finished now go to next. becuase i put all the 34 folders info in a loop.
>
>Thank you very much.

FoxPro is sequential, not multi threaded. The program won't continue to the next statement until the COPY FILEs are all copied.

If you need to track what's going on, you'll need to do an ADIR() to get the files information into an array and process that through a loop, or you can use the SYS(2000) function to get the file names if there are more than 13000 files in a folder (an ADIR() limit because of the array (13000*5 elements for each file, 65000 elements - VFP9 will not have that limit).
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform