右键管理员运行BAT
@echo offfor /f "eol=# delims=" %%a in ('type "%windir%\system32\drivers\etc\hosts"^|findstr "10.22.210.222"') do set flag=1if not defined flag echo 10.22.210.222>>"%windir%\system32\drivers\etc\hosts"