Update a folder to match another folder

Okay...

I created a command (button) to update two folders so that they both contain all and the latest copies of files, using the two code lines given me here earlier:

Copy UPDATEEXISTING=date
Copy WHENEXISTS=skip

So now, this happens:

I have directory A that has files (a,b,c). I have directory B tat has files (a,b). File a in directory A is newer than file a in directory B.

When I used the button to copy from Directory A to Directory B, file C GOT COPIED INTO B as it didn't previously exist. File b was left alone, as both copies were the same.

When it came to file a I was asked if I wanted to replace the older file with the newer file.

All that works as wanted, but how can I et it so that, when using that button (specific command), the process will automatically run through all the files? Answering for every file could be forever on sole directory, and I don't want duplicate copies of all the copied files, for that could result in gigs of useless files.

Is there a way to automate the process?

Regards,
Chuck Billow

I use the

If you want older to be replaced by newer without prompting then you could use:

Copy UPDATEALL WHENEXISTS=replace

Regards, AB

[quote="aussieboykie"]If you want older to be replaced by newer without prompting then you could use:

Copy UPDATEALL WHENEXISTS=replace

Regards, AB[/quote]

Wouldn't that just replace it "WHEN EXISTS" and not only when it is newer than the one already there?

Regards,
Chuck

Have a look at the Help file entry for Copy - Raw Command, specifically the description of UPDATEALL. It is very clear.

Regards, AB