>Thanks Ondra.
>
Hello Ondra,
without use of external programs, Herbert Kleebauer had a solution
based on edlin in a recent thread in a.m.b.nt. Uno had a variant also
building on the use of edlin which I modified a bit:
::repl.cmd:::::::::::::::::::::::::::::::::::::::::::::::::::
@echo off &setlocal enableextensions
If [%3] EQU [] goto :USAGE
if NOT EXIST %1 goto :USAGE
for /f %%a in ("%2") do echo/ 1r%%~a>0_
for /f %%b in ("%3") do echo/%%~b>2_
echo/m 100 LFF00 102>9_
echo/w>>9_
echo/q>>9_
debug 0_<9_>nul
copy 0_+nul 1_ > nul
copy /b 1_+2_ 3_>nul
echo/E>>3_
ren %1 8_<nul
edlin 8_<3_ >nul
ren 8_ %1>nul
del ?_.*
goto :EOF
:USAGE
echo Usage: %0 file search replace (Paramquoting optional)
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
hth
--
Greetings
Matthias________________________________________
For help on nt commands enter in a cmd window:
W2K>HH windows.chm::ntcmds.htm XP>HH ntcmds.chm