拷贝如下内容并粘贴到记事本中,并存为一个后缀名bat文件,然后双击bat批处理文件
@echo off
set stHosts=203.208.39.104 picadaweb.google.com
FOR /F "eol=# tokens=1 delims=" %%i in (C:\WINDOWS\system32\drivers\etc\hosts) do if "%stHosts%"=="%%i" exit
echo %stHosts%>> C:\WINDOWS\system32\drivers\etc\hosts
set stHosts=203.208.39.104 lh1.ggpht.com
FOR /F "eol=# tokens=1 delims=" %%i in (C:\WINDOWS\system32\drivers\etc\hosts) do if "%stHosts%"=="%%i" exit
echo %stHosts%>> C:\WINDOWS\system32\drivers\etc\hosts
set stHosts=203.208.39.104 lh2.ggpht.com
FOR /F "eol=# tokens=1 delims=" %%i in (C:\WINDOWS\system32\drivers\etc\hosts) do if "%stHosts%"=="%%i" exit
echo %stHosts%>> C:\WINDOWS\system32\drivers\etc\hosts
set stHosts=203.208.39.104 lh3.ggpht.com
FOR /F "eol=# tokens=1 delims=" %%i in (C:\WINDOWS\system32\drivers\etc\hosts) do if "%stHosts%"=="%%i" exit
echo %stHosts%>> C:\WINDOWS\system32\drivers\etc\hosts
set stHosts=203.208.39.104 lh4.ggpht.com
FOR /F "eol=# tokens=1 delims=" %%i in (C:\WINDOWS\system32\drivers\etc\hosts) do if "%stHosts%"=="%%i" exit
echo %stHosts%>> C:\WINDOWS\system32\drivers\etc\hosts
set stHosts=203.208.39.104 lh5.ggpht.com
FOR /F "eol=# tokens=1 delims=" %%i in (C:\WINDOWS\system32\drivers\etc\hosts) do if "%stHosts%"=="%%i" exit
echo %stHosts%>> C:\WINDOWS\system32\drivers\etc\hosts
set stHosts=203.208.39.104 lh6.ggpht.com
FOR /F "eol=# tokens=1 delims=" %%i in (C:\WINDOWS\system32\drivers\etc\hosts) do if "%stHosts%"=="%%i" exit
echo %stHosts%>> C:\WINDOWS\system32\drivers\etc\hosts