Код:
Код: Выделить всё
@echo off
set t=teh
set str=%t% cat in %t% hat
echo.%str%
set str=%str:%t%=the%
echo.%str%
pauseКод: Выделить всё
@echo off
set t=teh
set str=%t% cat in %t% hat
echo.%str%
set str=%str:%t%=the%
echo.%str%
pauseКод: Выделить всё
@echo off
SetLocal EnableDelayedExpansion
set t=teh
set str=%t% cat in %t% hat
echo.%str%
set str=!str:%t%=the!
echo.%str%
pauseКод: Выделить всё
@echo off
set t=teh
set str=%t% cat in %t% hat
echo.%str%
call set str=%%str:%t%=the%%
echo.%str%
pauseКод: Выделить всё
@echo off
set t=teh
set str=%t% cat in %t% hat
echo.%str%
call echo.%%str:%t%=the%%
pause