I am copying large amounts of files to different servers using the following command
XCOPY *.* "\\192.168.1.99\C$\Test Folder" /EXCLUDE:copyfiles.cfg /s/y/z/v/k
How can I output individual file errors to a LOG.TXT file?
Currently I have this, but i need more detailed info of what was not copied. not just that an error occurred withing the 100+ files copied. I want to know what files were not copied.
if errorlevel 4 echo "An error has be found" && echo. Please check the log.txt file. && echo %date% %time% Insufficient disk access, space, on Serve 1>> .\LOG.TXT
if errorlevel 5 echo echo %date% %time% Disk write error occurred on Server 1>> .\LOG.TXT