L
L
Leonid2018-08-26 19:53:47
System administration
Leonid, 2018-08-26 19:53:47

How to add an address to hosts using bat?

How to add an address to hosts using bat?
So that the previous entries do not change, but new ones are added

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
XanMark, 2018-08-26
@leobatura

ECHO %NEWLINE%^11.11.11.11 ya.ru>>%WINDIR%\System32\drivers\etc\hosts
ECHO %NEWLINE%^22.22.22.22 google.ru>>%WINDIR%\System32\drivers\etc\hosts
Run, of course, with admin rights.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question