回复 1# SandraRusso - @echo off
- cd /d "D:\W\"
- if not exist "NewFlies\" md "NewFlies\"
- set "files=1#型号 2#型号 50#型号"
- for %%i in (%files%) do (
- for /f "delims=" %%a in ('dir /ad /s /b') do (
- if "%%~na" == "%%i" xcopy "%%a" "NewFlies\%%~na\" /s /h /y
- )
- )
- pause
复制代码
|