for /f %%i in (test.txt) do (
set var=%%i
echo !var:%const_str:~1,-1%=TND!
)
echo.
echo ======分======割======线======
echo.
for /f %%i in (test.txt) do (
set var=%%i
echo !var:%const_str:~1,-1%=!
)
@ECHO OFF & SETLOCAL ENABLEDELAYEDEXPANSION
FOR /F %%A IN (A.TXT) DO (
SET str=%%A
ECHO !str:他娘的=TND!
)
FOR /F %%A IN (A.TXT) DO (
SET str=%%A
ECHO !str:他娘的=!
)
pause