本帖最后由 yhcfsr 于 2020-9-6 14:36 编辑
- @echo off
- for /r %%a in (*) do (
- set "name=%%~na"
- set "suff=%%~xa"
- set "full=%%~fa"
- call :DelNum
- )
- pause&&exit /b
-
- :DelNum
- setlocal enableDelayedExpansion
- for /l %%a in (0,1,9) do set "name=!name:%%a=!"
- ren "%full%" "%name%%suff%"
- endlocal&&exit /b
复制代码
|