cityofdekalb
asked on
Robocopy Skipped File
I ran the following batch file to robocopy a directory from one drive to another:
ROBOCOPY %SORC% %DEST% /MIR /S /ZB /W:1 /R:1 /XA:HS /V /NP /LOG:%LOG%
@if errorlevel 16 echo ***ERROR *** & goto END
@if errorlevel 8 echo **FAILED COPY ** & goto END
@if errorlevel 4 echo *MISMATCHES * & goto END
@if errorlevel 2 echo EXTRA FILES & goto END
@if errorlevel 1 echo --Copy Successful-- & goto END
@if errorlevel 0 echo --Copy Successful-- & goto END
goto END
:END
pause
There are 884 skipped files about 85mb. I thought the /v switch would show me the location of those skipped files so I can make sure they aren't needed. Is there another way to determine which files were skipped?
Thanks!
ROBOCOPY %SORC% %DEST% /MIR /S /ZB /W:1 /R:1 /XA:HS /V /NP /LOG:%LOG%
@if errorlevel 16 echo ***ERROR *** & goto END
@if errorlevel 8 echo **FAILED COPY ** & goto END
@if errorlevel 4 echo *MISMATCHES * & goto END
@if errorlevel 2 echo EXTRA FILES & goto END
@if errorlevel 1 echo --Copy Successful-- & goto END
@if errorlevel 0 echo --Copy Successful-- & goto END
goto END
:END
pause
There are 884 skipped files about 85mb. I thought the /v switch would show me the location of those skipped files so I can make sure they aren't needed. Is there another way to determine which files were skipped?
Thanks!
ASKER
Does this apply to the same file in different folders? I did a search for "same" and go no results. Is there anything else I can check?
Thanks!
Thanks!
What do you mean with "Does this apply to the same file in different folders?"
First copy, one file, target folder is empty, file class is "New File"; one skipped dir, because the target directory existed already:
First copy, one file, target folder is empty, file class is "New File"; one skipped dir, because the target directory existed already:
Options : /V /DCOPY:DA /COPY:DAT /R:0 /W:30
------------------------------------------------------------------------------
1 d:\Temp\
100% New File 1 test.txt
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 1 1 0 0 0 0
Bytes : 1 1 0 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
Second copy, without changing anything,; file class is now "same", one skipped file (and the same skipped dir); "same" will only be logged with /v: Options : /V /DCOPY:DA /COPY:DAT /R:0 /W:30
------------------------------------------------------------------------------
1 d:\Temp\
same 1 test.txt
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 1 0 1 0 0 0
Files : 1 0 1 0 0 0
Bytes : 1 0 1 0 0 0
Times : 0:00:00 0:00:00 0:00:00 0:00:00
ASKER
This was a copy of a folder to a completely new location. There wasn't anything there to begin with. That's why I an confused by it skipped that many files but not showing the path for them since I had the /v switch turned on.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
These files will show up with /v, and be tagged as "same".