how can i replace string to other string
in text file
for example this code replace a word in text file:
@echo off
SETLOCAL=ENABLEDELAYEDEXPANSION
rename "test.txt" "test.tmp"
for /f %%a in (test.tmp) do (
set foo=%%a
if !foo!==reza set foo=reeza
echo !foo! >> test.txt)
del test.tmp
but i need a code for replace string to other string!
for example:
replace:
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\
Instead:
HKEY_LOCAL_MACHINE\SOFTWARE\
how can?What code?

thanks