I want to create a batch while which finds specific lines in a batch file and are able to edit these lines.
Example:
//TXT FILE//
ex1
ex2
ex3
ex4
i want to let the batch file find ‘ex3’ and edit this to ‘ex5’ to let it look like this:
ex1
ex2
ex5
ex4
On a native Windows install, you can either use batch(cmd.exe) or vbscript without the need to get external tools.
Here’s an example in vbscript:
Save as myreplace.vbs and on the command line: