Page 1 of 1

NEWBIE: Replace string on file1 from string on file2

Posted: 02 Dec 2022 05:41
by MrSep20
I have 02 file Source.txt & Destination.txt

Destination.txt
------------------
Store = A1
Address = 123 A1
.....

Source.txt
------------------
Store = A2
Address = 456 A2

-----------
Now, I want to do a batch file check in Destination.txt with String="Store" if available and replace it with string "Store = A2" in Source.txt file. Similar to "Address".

After replace then
Destination.txt
-------
Store = A2
Address = 456 A2
....

Sorry for the limited English

Thanks