8532200 当前离线
二级士官
Gin_Q 当前离线
五级士官
D:\GIN\c\test>test1.exe abcd123 测试 abcd测试123 D:\GIN\c\test>复制代码
TOP
@echo off ::相关变量 set "flag=小" ::begin for /f %%a in (0.txt) do ( for /f %%b in ('Gin.exe "%%a" "%flag%"') do echo %%b) pause复制代码
XIAOZI888%!2.TXT DAZI588.TXT WUZI988.TXT WUWU688.TXT复制代码
XIAOZI小888%!2.TXT DAZI小588.TXT WUZI小988.TXT WUWU小688.TXT 请按任意键继续. . .复制代码
@echo off ::相关变量 set "flag=小" ::begin for /f %%a in ('dir /b /a-h /a-d') do ( for /f %%b in ('Gin.exe "%%~nxa" "%flag%"') do ren %%~nxa %%b) echo "Done" pause>nul&exit复制代码
评分人数
WHY 当前离线
上校
@echo off setlocal enabledelayedexpansion for /f "delims=" %%i in ('dir /b *.txt ^| findstr /i "^[a-z][a-z]*[0-9][0-9]*\.txt$"') do ( set "s=%%~ni" for /f "delims=1234567890" %%j in ("!s!") do ( ren "%%i" "%%j汉字!s:%%j=!%%~xi" ) ) pause复制代码
@echo off PowerShell "dir *.txt | ?{$_.Name -match '^([a-z]+)(\d+\.txt)$'} | ren -NewName{$matches[1] + '中文' + $matches[2]}" pause复制代码