本帖最后由 pcl_test 于 2015-3-23 17:29 编辑
回复 1# liuks001
关杀软- @echo off
- :main
- cls
- cd /d "C:\WINDOWS\system32\drivers\etc\"
- echo 1、屏蔽 2、恢复
- echo.
- set /p choice=请选择[序号+回车]:
- if not defined choice goto main
- if %choice% == 1 goto pb
- if %choice% == 2 goto hf
- cls
- echo “%choice%”不是有效值,请重新输入!
- echo.
- ping 0 -n 2 >nul
- goto main
-
- :pb
- ren "hosts" "backhosts"
- (for /f "tokens=1* delims=:" %%a in ('more +28 %0') do echo,127.0.0.1 %%a)>"hosts"
- echo OK
- pause & exit
-
- :hf
- move "backhosts" "hosts"
- echo OK
- pause & exit
-
- rem 请在下面列出需屏蔽的网址,格式为::网址
- ::www.baidu.com
- ::www.qq.com
- ::
- ::
- ::
- ::
复制代码
|