Robocopy (Windows)

Aus MattWiki

Robocopy is part of Microsoft Powertoys.

It enables you to copy files and whole directory structures

robocopy C:\Users\Alice\source-dir c:\Users\Bob\target-dir /mir

/e copies subdirectories, includes empty directories.

/purge deletes files and directories in the target that no longer exist in the source. Using this option together with /e allows the destination directory security settings to not be overwritten.

/mir mirrors a directory tree and is equivalent to /e and /purge. Using this option together with /e allows the destination directory security settings to be overwritten.


Source: https://learn.microsoft.com/de-de/windows-server/administration/windows-commands/robocopy