|Through change.com it is possible to replace it in the same file.|
However, I tried your code and it is creating a new file but there is nothing being written in it. Am I doing something wrong?
@echo off > newfile & setLocal enableDELAYedexpansion
set /p old=old string ?
set /p new=new string ?
for /f "tokens=* delims= " %%a in (myfile.txt) do (
set str=!str:%old%=%new%!> newfile echo !str!
Contents of myfile.txt
I am tryinng to replace 601 with 500