@echo off
for %%a in (*.txt) do (
(for /f "delims=" %%b in (%%a) do (
set "str=%%b"
setlocal enabledelayedexpansion
call :lp
endlocal
))>..\new\%%a
)
goto :eof
:lp
if /i "!str:~,1!" leq "z" set "var=!var!!str:~,1!"
set "str=!str:~1!"
if defined str goto lp
echo,!var!
set "var="
在替换里面有一个全部替换
编辑菜单→替换