
CODE: [Copy to clipboard]@echo off
for /r d: %%i in (*.txt) do (
for /f "eol= delims=" %%a in (%%~si) do (
set a=%%a
setlocal enabledelayedexpansion
set b=!a:他=她!
echo.!b!>>"%%~dpni"_已替.txt
endlocal
) )
CODE: [Copy to clipboard]sed.exesed "s/html/good/g" a.txt
CODE: [Copy to clipboard]@echo off
for /f "delims=" %%i in ('dir /b /a-d /s *.txt') do (
for /f "delims=" %%a in ('findstr /i /n .* "%%i"') do (
set str=%%a
setlocal enabledelayedexpansion
set str=!str:*:=!
if not "!str!"=="" set str=!str:html=good!
echo.!str!>>%%~dpni_已替.txt
endlocal
))
pause
| Quote: | |
|
CODE: [Copy to clipboard]change.exechange.exe *.txt /from html /to book
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |