I use robocopy in order to move files from the source to the target folder. That works well, I'm a bit surprised about the logging of robocopy - it lists all files of the target folder?
Lets say we have two folders, an empty source folder and a target folder with some files (target1-3). If I run this command:
robocopy "D:\test\source" "D:\test\target" /S /MOV /R:10 /W:30 /UNILOG+:"log.txt"
I got this output (sorry für the german):
-------------------------------------------------------------------------------
ROBOCOPY :: Robustes Dateikopieren fr Windows
-------------------------------------------------------------------------------
Gestartet: Dienstag, 6. April 2021 20:50:24
Quelle : D:\test\source\
Ziel : D:\test\target\
Dateien : *.*
Optionen: *.* /S /DCOPY:DA /COPY:DAT /MOV /R:10 /W:30
------------------------------------------------------------------------------
0 D:\test\source\
*EXTRA Datei 0 target1.txt
*EXTRA Datei 0 target2.txt
*EXTRA Datei 0 target3.txt
------------------------------------------------------------------------------
Insgesamt KopiertšbersprungenKeine šbereinstimmung FEHLER Extras
Verzeich.: 1 0 1 0 0 0
Dateien: 0 0 0 0 0 3
Bytes: 0 0 0 0 0 0
Zeiten: 0:00:00 0:00:00 0:00:00 0:00:00
Beendet: Dienstag, 6. April 2021 20:50:24
Why does robocopy list all files from the target folder? How could I avoid that? (This list could become long in the real use case.)