本帖最后由 zaqmlp 于 2018-8-10 09:42 编辑
- @echo off
- :main
- cls
- echo;1 添加
- echo;2 还原
- set "c="
- set /p c=输入序号并按回车:
- if "%c%" equ "1" goto 1
- if "%c%" equ "2" goto 2
- goto main
- :1
- for /f "delims=" %%a in ('dir /a-d/b/s') do (
- if "%%~nxa" neq "%~nx0" (ren "%%a" "%%~nxa.suv")
- )
- goto end
- :2
- for /f "delims=" %%a in ('dir /a-d/b/s *.suv') do ren "%%a" "%%~na"
- :end
- pause
复制代码
|