@echo off setlocal rem rem Note the type rem set VAR=Hello wrold. rem rem print the variable and fix the rem typo in one go: rem echo %VAR:world=world% endlocal code example

Example: @echo off setlocal rem rem Note the type rem set VAR=Hello wrold. rem rem print the variable and fix the rem typo in one go: rem echo %VAR:wrold=world% endlocal

@echo off

setlocal

rem
rem  Note the type
rem
set VAR=Hello wrold.

rem
rem print the variable and fix the
rem typo in one go:
rem
echo %VAR:wrold=world%

endlocal

Tags:

Go Example