本帖最后由 77七 于 2023-3-11 15:26 编辑
回复 3# yy5958437
- @echo off
- for /d %%a in (*) do (
- if not "%%a" equ "Z" (
- ren "%%a\1.jpg" "%%a.jpg"
- move "%%a\%%a.jpg" "Z\"
- )
- )
- pause
复制代码 这样行吗
代码2 恢复
- @echo off
- for /d %%a in (*) do (
- if not "%%a" equ "Z" (
- if exist "Z\%%a.jpg" (
- ren "Z\%%a.jpg" "1.jpg"
- move "Z\1.jpg" "%%a\"
- )
- )
- )
- pause
复制代码
|