- @echo off
- set "SrcDir=c:\(test-1)"
- set "DstDir=c:\Web-Vege\(Waiting)"
- pushd "%SrcDir%\"
- for /f "delims=" %%a in ('dir /ad/on/b^|findstr /ibe "gold-[0-9]*"') do (
- if exist 1.jpg (
- md "%DstDir%" 2>nul
- move "%%a" "%DstDir%\" && move *.jpg "%DstDir%\%%a\"
- )
- pause&goto :eof
- )
复制代码
|