本帖最后由 flyinnet9 于 2015-9-22 09:49 编辑
回复 5# a000001 - @echo off
- if exist %temp%\$ del /q %temp%\$
- for /f "delims=" %%i in (%systemroot%\system32\drivers\etc\hosts) do echo %%i>>%temp%\$
- for /f "delims=" %%a in ('findstr /e /v /g:"%temp%\$" list.txt') do echo %%a>> %systemroot%\system32\drivers\etc\hosts
复制代码
|