复制增量,拷贝增量批处理
复制增量,拷贝增量批处理
@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
走向地狱的途中,不小心走了程序员这条路,路上一个个黑心的老板,和暗无天日的加班,我才发现,通往地狱的路径中,我们这行是最短的。