Question : Copy New Files Only from directory

My Original question was a little unclear.  I would like look into a specified directory and copy any files that are not currently on my local computer.  Not just based on name, but modified date.

Reference the related question for the baseline, but I would like to only copy new files, or updated files during this process as there may be upwards of 5000 files, and I dont want to copy all of them each time.

Answer : Copy New Files Only from directory

Hello VTGegan,

No need to use VB and complicate the process, you can use robocopy switch in one line to accomplish the whole task also there is other switches which might be intersting according to your scenario.

Find below some Switches i thought it might be helpful and intersting also find below the link for a full documentation for ROBOCOPY command.

- use /MAXAGE:n Excludes files with age older than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.
.
- use /MAXLAD:n Excludes files with a Last Access Date older than n days or specified date. If n is less than 1900, then n is expressed in days. Otherwise, n is a date expressed as YYYYMMDD.

- use /ETA Shows estimated time of completion for copied files.

- use /MON:n : MONitor source; run again when more than n changes seen.

- use /MOT:m : MOnitor source; run again in m minutes Time, if changed.

http://ss64.com/nt/robocopy.html

For Further info don't hesitate to refer back.

Best Regards,
Karim




Random Solutions  
 
programming4us programming4us