Batch - I would like to search with a variable in one file and replace that variable result in another file
问题 I would like to search using a variable in one file, then take that variable result and replace part of some text in another file. For exmaple in "1.txt" I have a text line of: ClassName=X X changes within the file depending on the line of text that you search ClassName= So I would have to search using a variable with ClassName= I would then search for X in another file after the word "Class=", replacing it with the word "ShipDummy". We'll call the second file "2.txt". X within the second