• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 698
  • Last Modified:

Script Needed Compare to folders

Windows 2003 R2 Servers.

I run a scipt that copies a folder from a NAS drive to a USB drive for a backup copy.


teracopy.exe copy n:\photos "d:\photo backup" /overwriteall /close >c:\util\photo.log

It copies all the photos every time 5000 in total.

Would like a way to compare both folders and then only copy the files that have changed or have been added.

Maybe a script that could feed the teracopy program

Any ideas?
Thomas Grassi
Thomas Grassi
1 Solution
Steven HarrisPresidentCommented:
Are you comfortable moving away from teracopy?

Try a simple .bat script with ROBOCOPY:

ROBOCOPY Source_folder Destination_folder [files_to_copy] [options]

ROBOCOPY n:\photos d:\photo backup /Z /FFT /MIR > c:\util\photo.log

Open in new window

/Z : Copy files in restartable mode (survive network glitch
/FFT : Assume FAT File Times (2-second date/time granularity)
/MIR : MIRror a directory tree
Thomas GrassiSystems AdministratorAuthor Commented:
Works great thanks for the information on robocopy

Teracopy is a great program too but robocopy has the function I require
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now