@echo offfor /f "tokens=1* delims=-" %%a in ('dir /a-d /b *.txt') do (ren "%%a-%%b" "ABC%%a-EF%%b")
批量修改当前文件夹下1-2.txt这种形式的txt文件名