回复 13# fouliny1 - @echo off
- setlocal EnableDelayedExpansion
- cd /d "%~dp0"
- (
- for /d %%A in ("设计\*") do (
- set fd1=%%~nxA
- for /d %%B in ("\\192.168.18.222\n8选版目录\选版服务器\[已选]!fd1:~0,12!*") do (
- for %%C in ("%%B\工程\*.n8cprj") do (
- echo %%~dpC
- copy /y "%%C" "%%A\" >nul
- )
- )
- )
- ) >list.txt
-
- @REM 拷贝图片
- for /d %%A in ("设计\*") do (
- set fd1=%%~nxA
- for /d %%B in ("\\A网络\[已选]!fd1:~0,12!*") do (
- for %%C in ("\\B网络\!fd1:~0,12!\照片\*.jpg") do (
- if exist "%%~B\已选照片\%%~nxC" (
- copy /y "%%~C" "%%~A\"
- )
- )
- )
- )
- endlocal
- pause
复制代码
|