Skip to main content

To know which the files are is copy thought xcopy with Date & Time.

Note:  the doubled greater than symbols (>>), this will append to the log.txt file, rather than creating a new one

Command

Echo. >>”C:\Test\log.txt” 
echo.———————————- >> “C:\Test\log.txt” 
echo %date% %time% >> “C:\Test\log.txt” 
echo.———————————- >> “C:\Test\log.txt” 
Echo. >> “C:\Test\log.txt” 
xcopy “D:\test\*” “C:\test\” /e /i /y /d >> “C:\Test\log.txt” 
Echo. >> “C:\Test\log.txt” 
echo.———————————- >> “C:\Test\log.txt” 
echo %date% %time% >> “C:\Test\log.txt” 
echo.———————————- >> “C:\Test\log.txt” 
Echo. >>”C:\Test\log.txt”
 
results Running after the Batch File.
 
!! Suggestions are Welcome !!