联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off set SrcDir=C:\test\projects set DstDir=C:\test\output for /f "tokens=*" %%a in ('dir /s /b /a-d "%SrcDir%"^|findstr /i "\\bin\\"') do ( echo n|copy /-y "%%a" "%DstDir%" )
@echo off set SrcDir=C:\test\projects set DstDir=C:\test\output for /f "tokens=*" %%a in ('dir /s /b /a-d "%SrcDir%"^|findstr /i "\\bin\\debug\\"') do ( echo n|copy /-y "%%a" "%DstDir%" )
@echo off setlocal enabledelayedexpansion set SrcDir=C:\test\projects set DstDir=C:\test\output for /f "tokens=*" %%a in ('dir /s /b /a-d "%SrcDir%"^|findstr /i "\\bin\\debug\\"') do ( if exist "%DstDir%\%%~nxa" ( echo "%%~dpa"|findstr "%%~na">nul 2>nul if !errorlevel! equ 0 ( copy /y "%%a" "%DstDir%" ) ) else ( copy "%%a" "%DstDir%" ) )