Robocopy (Windows)

Aus MattWiki
Version vom 1. Juni 2025, 16:32 Uhr von Matt (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „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 <code>/e</code> copies subdirectories, includes empty directories. <code>/purge</code> deletes files and directories in the target that no longer exist in the source. Using this option together with <code>/e</code> allows the destination directory security settings to not be overwritten. <…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

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