bat批处理移动文件到指定文件

@echo off
set "OldFolder=C:\11_Sync\Test\From"
set "NewFolder=C:\11_Sync\Test\To"
if not exist "%FromFolder%\" (
    echo 没有找到文件夹 "%FromFolder%"
    pause
    goto :eof
)
if not exist "%NewFolder%\" (
    md "%NewFolder%"
)
pushd "%OldFolder%"
for /f "delims=" %%i in ('dir /b /s /ad') do (
    move "%%i\*.jpg" "%NewFolder%" 2>nul
    move "%%i\*.pptx" "%NewFolder%" 2>nul
)
popd
技能攻略

批处理查找文件替换文件

2022-10-13 21:27:02

营销推广

分析了几十个百度账号,我总结了八个优化技巧!

2021-12-15 13:09:50