![]() ![]() ![]() Note: X-posted from the Trilogy 4.2 thread as I figured it might easily get buried soon on that thread's 230 posts. PauseTerrible right? It only adds the next line when "" is found for all of them, instead of the actual target server. IF %ERRORLEVEL% NEQ 1 echo 127.0.0.>%WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 echo 127.0.0.>%WINDIR%\system32\drivers\etc\hosts Set h="%SystemRoot%\system32\drivers\etc\hosts"įor %%s in ( do find /c /i "%%s" %h%>nul||(echo.Adding "%%s" to hosts file
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |