|| ---Quote (Originally by mtotman)---
|| SYNC /W
|| should work, if you have a new enough version of 4NT. I'm can't
|| remember when it was added, and it's not in the LE version of TCC.
|| ---End Quote---
|| Thanks - as I understand it, SYNC /W will copy newer files from dir2
|| to dir1, and therefore from the destination drive to the source
|| drive. Though that's usually no problem, I want an absolutely 1-way
|| process from drive 1 to drive 2. On rare occasion I'll have a
|| newer version of a file on the backup drive that I want to get rid
|| of, not bring onto the source drive.
| ---End Quote---
| Then why not just delete the contents of the directory on drive 2 &
| copy the directory on drive 1 to the directory on drive 2?
What if you have 40GB of identical data already duplicated on both drives?
You'd not want to delete and copy again all of that...
Here is a simple _U_N_T_E_S_T_E_D_ batch program to eliminate all files on
drive 2 which do not
exist on drive 1:
REM P1 is the full path on drive 1 of the top-level source directory
REM P2 is the full path on drive 2 of the top-level target directory
global/i/n gosub DIRTEST
do f2 in *
if not isfile "%d1\%f2" del "%f2"