Discussion forum for all Windows batch related topics.
Moderator: DosItHelp
-
FireWater
- Posts: 1
- Joined: 18 Jul 2023 05:56
#1
Post
by FireWater » 18 Jul 2023 06:17
Hello User,
I have a problem with ROBOCOPY:
I entered this command in a bat ...
Code: Select all
robocopy "c:\data" "d:\data" /COPY:DAT /MIR /FFT /R:1 /W:1
The problem it copies some directories "over and over" with the display: 100% Older [file size and file name].
What is going wrong here ?
Original Text
Hallo User,
ich habe ein Problem mit ROBOCOPY:
Ich habe diesen Befehl in einer Bat eingegeben ...
Code: Select all
robocopy "c:\Daten" "d:\Daten" /COPY:DAT /MIR /FFT /R:1 /W:1
Das Problem er kopiert einige Verzeichnisse "immer wieder" mit der Anzeige: 100% Älter [Dateigröße und Dateiname]
Was läuft hier falsch ?[/i]
-
GeoffVass
- Posts: 11
- Joined: 04 Oct 2021 17:34
#2
Post
by GeoffVass » 22 Jul 2023 01:11
Depending on what "over and over" means, one possibility is that the source has a junction point which refers to something in its own parent. So Robocopy just follows forever in a loop. To stop this, use the /XJ switch.