Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy latest files only
Message
From
11/10/2012 06:05:31
 
 
To
11/10/2012 01:07:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01554753
Message ID:
01554774
Views:
46
Use Adir() to create an array of all the files in the directory. Then you scan the array and copy every file which are newer than 30 days.

>in order to keep user computers up to date i zip the complete array of program files into a directory then send them along as zip attachment in email.
>problem is i have been sending the whole lot each time. what i want to do is just send the programs that have only been changed within the last month
>
>current command is the basic copy
>
>Copy File c:/myfolder/*.prg To c:\myzipfolder
>
>a) how would i modify this command to skip over programs that show no change within last 30 days
>or
>b) would it be better to copy all then sort by date in the zip directory then delete those older ones.
>
>thanks for your help
>
>k
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform