N
N
nordz0r2022-02-17 15:59:24
cmd/bat
nordz0r, 2022-02-17 15:59:24

Alternative to sed in .bat?

Good afternoon. I need to write a bat that will change the line in the config for the user. You can only use .bat
How to replace dns_server=1.1.1.1 with dns_server=2.2.2.2 there?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2022-02-17
@vabka

It looks like you want to edit the Ini file.
If so, then you don't need sed.
https://stackoverflow.com/questions/18871870/batch...
https://stackoverflow.com/questions/2866117/window...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question