Commander 当前离线
一级士官
@echo off for /f "tokens=*" %%i in ('dir /b *.txt') do ( ren "%%~i" "wwf%%~ni.txt" )复制代码
TOP
@echo off for %%a in (*.html) do ( set "file=%%a" setlocal enabledelayedexpansion ren %%a !file:~0,-9!.txt endlocal )复制代码