回复 1# 97867564
- @echo off
- :: 如果源时间比目标时间新,改写现存目标文件。
- set "new=MergerDir"
- if not exist ".\%new%\" md ".\%new%"
- for %%i in (a b c d) do (
- for /f %%j in ('dir /b /a:d') do (
- if /i not "%%~j"=="%new%" (
- if exist "%~dp0%%~j\%%i\" (
- xcopy /Y /D /E /Q /K "%~dp0%%~j\%%i\*" "%~dp0%new%\%%i\*" >nul
- ))))
- pause
复制代码
|