Code:
@echo off
set "file=c:\jobs\_IAT\20120512_ASAPRES_00007.txt"
set "newfile=c:\jobs\_IAT\20120512_ASAPRES_00007 version 2.txt"
set "newstr=0000007Advice"
set "oldstr=0000000Advice"
echo> tmp.vbs s = Wscript.StdIn.ReadAll
echo>> tmp.vbs Wscript.Echo Replace(s,"%oldstr%","%newstr%")
type "%file%" |cscript /nologo tmp.vbs >"%newfile%"
del tmp.vbs