当前位置: 首页 > 工具软件 > 复制增量 > 使用案例 >

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

曹沛
2023-12-01

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

 

    @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
 
 类似资料: