# Synchronize changes modification date, Copy doesn't

**URL:** https://resource.dopus.com/t/synchronize-changes-modification-date-copy-doesnt/31293
**Category:** Help & Support
**Created:** [January 19, 2019, 7:23pm UTC](https://resource.dopus.com/t/synchronize-changes-modification-date-copy-doesnt/31293 "2019-01-19T19:23:12Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![tbone](https://resource.dopus.com/user_avatar/resource.dopus.com/tbone/32/25726_2.png) [@tbone](https://resource.dopus.com/u/tbone)
#### Post date: [January 22, 2019, 9:10am UTC](https://resource.dopus.com/t/synchronize-changes-modification-date-copy-doesnt/31293/8 "2019-01-22T09:10:54Z")

</div>

> [@How to copy modified-timestamp from one file to another?](https://resource.dopus.com/t/how-to-copy-modified-timestamp-from-one-file-to-another/12721/3):
>
> robocopy.exe (somehwere in your windows folder right now), is another option. There is the /COPY switch for files on robocopy.exe (and /DCOPY for folders), which allow you to specify what is to be copied (timestamps, data, attributes or only securit…

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.).

```auto
<?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](https://haage-partner.de/forum/viewtopic.php?f=45&t=4926)

---

_[View the full topic](https://resource.dopus.com/t/synchronize-changes-modification-date-copy-doesnt/31293)._
