Robocopy /IM

Microsoft Windows
Post Reply
User avatar
Simon Sheppard
Posts: 87
Joined: 2021-Jul-10, 7:46 pm

Robocopy /IM

Post by Simon Sheppard »

I updated the robocopy page yesterday to add the /IM and /COMPRESS options

/IM (include modified) has the help text "include modified files (differing change times)"
which doesn't make sense as copying files with a different last modified time or file size is the default action of Robocopy without any switches.

So I did some testing and it seems you have to change the Archive attribute on both the source and destination and then /IM will copy the file even if nothing else has changed.

It doesn't seem to matter if the archive attribute is set or unset, or even set and then immediately unset again, but both source and destination need to be changed and both need to be set to the same value and then /IM will see the files as having changed enough to trigger a fresh copy.

This doesn't seem very useful, but perhaps there is some other nuance which I'm missing?
Posts: 2
Joined: 2021-Nov-03, 8:33 am

Re: Robocopy /IM

Post by SolaWatson »

The /M switch should do the job as see, and using any of these tools which some of it are free should do the job easily, try Freefilesync , Syncthing , Gs Richcopy360, Duplicati...etc.
No need to worry about missing switches
Post Reply