
CODE: [Copy to clipboard]@echo off & SetLocal EnableDelayedExpansion
for /f "tokens=2" %%a in ('findstr "SVCHOST" 1.txt') do call :sub "%%a" " ***"
pause&exit /b 0
:sub
for /f "delims=" %%a in (2.txt) do (
set fileline=%%a
set fileline=!fileline:%~2= %~1!
echo\!fileline!
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |