Let the storm money come!

复制增量,拷贝增量批处理

     复制增量,拷贝增量批处理

 

    @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
 

posted @ 2012-03-19 00:38  精密~顽石  阅读(1201)  评论(0编辑  收藏  举报
在通往地狱的路上,加班能使你更快到达。