Xcopy Batch-Datei
Tag Leute,
Ich habe in einer Batchdatei einen xcopy-Befehl. Dieser soll eine bestimmte Datei kopieren. Diesen führe ich mit Zusatz Y aus, damit er ungefragt die Datei überschreibt.
Jetzt kommt jedoch jedes Mal die Frage ob es sich um ein Verzeichnis oder eine Datei handelt.
Wie bekomme ich diese Abfrage noch weg?
Schönen Gruß
Martin
Ich habe in einer Batchdatei einen xcopy-Befehl. Dieser soll eine bestimmte Datei kopieren. Diesen führe ich mit Zusatz Y aus, damit er ungefragt die Datei überschreibt.
Jetzt kommt jedoch jedes Mal die Frage ob es sich um ein Verzeichnis oder eine Datei handelt.
Wie bekomme ich diese Abfrage noch weg?
Schönen Gruß
Martin
Please also mark the comments that contributed to the solution of the article
Content-Key: 314413
Url: https://administrator.de/contentid/314413
Printed on: April 20, 2024 at 00:04 o'clock
3 Comments
Latest comment
You forgot to set the parameter /i
https://www.microsoft.com/resources/documentation/windows/xp/all/proddoc ...
But I would rather use robocopy instead of xcopy ...
Regards
https://www.microsoft.com/resources/documentation/windows/xp/all/proddoc ...
/i - Source is a directory or contains wildcards and Destination does not exist, xcopy assumes destination specifies a directory name and creates a new directory. Then, xcopy copies all specified files into the new directory. By default, xcopy prompts you to specify whether Destination is a file or a directory.
Regards