@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
0
@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