Batch-Datei für automatisches Kopieren von Dateien mit Ausnahmen?
Hallo! Ich möchte einen automatischen Kopiervorgang mittels einer *bat-Datei anstoßen. Das wäre ja nicht kompliziert. Allerdings sollen davon Dateien mit einer bestimmten Teilbezeichnung ausgenommen sein, also z. B. alle Dateien, die die Buchstaben “CWL” im Dateinamen tragen.
Wie kann ich das umsetzen?
Can be done with ROBOCOPY. So e.g.
Parameters /s if subdirectories
/xf closes corresponding files
Hello!
Thanks for the info. But it doesn’t work with me.
The line I recorded:
robocopy “D:\Booking\Database\” “D:\Onedrive\### Accounting\## Databases\Stockerau\Data\” /xf *OEPS*. *
What can be the cause?
It’s already cleared – at the end of the path, no “\” can stand. But thank you for the cool tip! ðŸTM‚👍👍👍
Yeah, right. If you set quotation marks, you must not put \.
What is important for folders with spaces.
If you don’t set any quotation marks, then it would work.
I just noticed.
Example:
Thank you. Super, that’s exactly what I was looking for! 👍👍