Frage

Ich muß einen Weg, um alle Dateien in einem Zielordner aktualisieren und seine Unterverzeichnisse mit Dateien in einem einzigen Quellordner.

Quelle: Datei A, B Datei, Datei-C
Ziel: Die Datei A, Destination-> SubFolder: Die Datei B

Es muss Update-Datei A und Datei B in ihrem dest Ordner und auch Datei-C ignorieren, da es nicht überall existiert in dest.

Ist das möglich mit xcopy oder robocopy oder gibt es ein weiteres Tool, das die Arbeit erledigt? Ich habe ein Spiel Bit worden, die kann es nicht herausgefunden.

Vielen Dank im Voraus.

War es hilfreich?

Lösung

robocopy will definitely help you out. While it doesn't sound like you can straight merge the source and destination outright (source sounds flat while the destination has some hierarchy), it has commands for copying entire folders and not copying if destination files aren't there.

Andere Tipps

You could use DeltaCopy. This is a open-source, GUI windows version of the rsync tool. Some of its features are

  • Incremental backup - Copies part of the file that is actually modified (so saving time and network resources).
  • Task scheduler - Profiles in DeltaCopy can run based on a schedule.
  • Windows friendly environment.
  • Complex Ignore patterns (filter files by name, extension, size, path or other criteria).

you can use ROBOCOPY like that

robocopy E:\Source G:\Destination\SubFolder /e /mir /np /log:backup_log.txt

for more info

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top