本帖最后由 flashercs 于 2022-6-8 16:27 编辑
- @echo off
- cd /d "%~dp0"
- for %%A in (
- "111.psd"
- "222.psd"
- ) do (
- for /d %%B in (*) do (
- for /d %%C in ("%%B\*") do (
- if /i "%%~nxC"=="%%~nA" (
- echo move /y "%%~A" "%%~C"
- move /y "%%~A" "%%~C" 2>nul
- )
- )
- )
- )
- pause
- exit /b
复制代码
- @echo off
- cd /d "%~dp0"
- for %%A in (
- *.psd
- ) do (
- for /d %%B in (*) do (
- for /d %%C in ("%%B\*") do (
- if /i "%%~nxC"=="%%~nA" (
- echo move /y "%%~A" "%%~C"
- move /y "%%~A" "%%~C" 2>nul
- )
- )
- )
- )
- pause
- exit /b
复制代码
|