Synchronize changes modification date, Copy doesn't

Robocopy.exe is my first choice for sync/mirror operations since the DO tool cannot be run from buttons, always needs manual setup first, which is unhandy for repeating operations.

Here's a demo button to sync src/dst lister with robocopy, add switches to your liking (to skip junctions and links or to skip special folders/files e.g.).

<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
	<label>Synchronize (Robocopy)</label>
	<tip>Synchronize (Robocopy)</tip>
	<icon1>#syncpane</icon1>
	<function type="batch">
		<instruction>@leavedoswindowopen </instruction>
		<instruction />
		<instruction>Confirm MSG=&quot;Synchronize (mirror to destination) with Robocopy?\n\nfrom:\n{sourcepath$} \n\nto:\n{destpath$} &quot; TITLE=Robocopy.exe</instruction>
		<instruction>Robocopy.exe {sourcepath$} {destpath$} /V /E /NP /R:0 /W:0 /COPYALL /PURGE /DCOPY:T</instruction>
		<instruction />
	</function>
</button>

If you have the "Confirm" script addin installed, the button will prompt you before starting.
Find it here: https://haage-partner.de/forum/viewtopic.php?f=45&t=4926

1 Like