复制增量,拷贝增量批处理
@echo off
xcopy "D:\TestAutoDeploy\Addition" "D:\TestAutoDeploy\TestDataAnnotation" /e/y
set folder=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%
md "D:\TestAutoDeploy\AdditionBak\%folder%"
xcopy "D:\TestAutoDeploy\Addition" "D:\TestAutoDeploy\AdditionBak\%folder%" /e/y
rem 清除所有目录及其所有子目录和文件
cd /d D:\TestAutoDeploy\Addition
rem del /s /q *
for /F %%i in ('dir /b') do rmdir /s/q %%i
rem rmdir /s/q %%i