|
@echo off
echo.
echo.
echo 本程序必须放在搜狗程序安装目录运行!
echo.
echo.
echo 正在阻止搜狗联网,请稍候……
SET Var0=%0
Set SG=
FOR /f "delims=" %%I in ("%Var0%") do Set SG=%%~dpI
cd /D "%SG%"
set N1=Block_SougouTool
set N2=netsh advfirewall firewall add rule
netsh advfirewall firewall delete rule name="Sogou Pinyin Service" dir=in>nul
netsh advfirewall firewall delete rule name="%N1%" dir=in>nul
netsh advfirewall firewall delete rule name="%N1%" dir=out>nul
%N2% name="%N1%" dir=in program="%SG%SGTool.exe" action=block>nul
%N2% name="%N1%" dir=out program="%SG%SGTool.exe" action=block>nul
%N2% name="%N1%" dir=in program="%SG%PinyinUp.exe" action=block>nul
%N2% name="%N1%" dir=out program="%SG%PinyinUp.exe" action=block>nul
%N2% name="%N1%" dir=in program="%SG%SGDownload.exe" action=block>nul
%N2% name="%N1%" dir=out program="%SG%SGDownload.exe" action=block>nul
%N2% name="%N1%" dir=in program="%SG%userNetSchedule.exe" action=block>nul
%N2% name="%N1%" dir=out program="%SG%userNetSchedule.exe" action=block>nul
%N2% name="%N1%" dir=in program="%SG%SGMedalLoader.exe" action=block>nul
%N2% name="%N1%" dir=out program="%SG%SGMedalLoader.exe" action=block>nul
%N2% name="%N1%" dir=in program="%SG%SogouCloud.exe" action=block>nul
%N2% name="%N1%" dir=out program="%SG%SogouCloud.exe" action=block>nul
%N2% name="%N1%" dir=in program="c:\Users\Public\SogouInput\USBDT\OctopusDownloader.exe" action=block>nul
%N2% name="%N1%" dir=out program="c:\Users\Public\SogouInput\USBDT\OctopusDownloader.exe" action=block>nul
%N2% name="%N1%" dir=in program="c:\Program Files\SogouInput\Components\SogouComMgr.exe" action=block>nul
%N2% name="%N1%" dir=out program="c:\Program Files\SogouInput\Components\SogouComMgr.exe" action=block>nul
%N2% name="%N1%" dir=in program="c:\Program Files (x86)\\SogouInput\Components\SogouComMgr.exe" action=block>nul
%N2% name="%N1%" dir=out program="c:\Program Files (x86)\\SogouInput\Components\SogouComMgr.exe" action=block>nul
%N2% name="%N1%" dir=in program="d:\Program Files\SogouInput\Components\SogouComMgr.exe" action=block>nul
%N2% name="%N1%" dir=out program="d:\Program Files\SogouInput\Components\SogouComMgr.exe" action=block>nul
%N2% name="%N1%" dir=in program="d:\Program Files (x86)\\SogouInput\Components\SogouComMgr.exe" action=block>nul
%N2% name="%N1%" dir=out program="d:\Program Files (x86)\\SogouInput\Components\SogouComMgr.exe" action=block>nul
cls
echo.
echo.
echo 已经阻止搜狗联网,任意键退出……
Pause>nul
路过,看到大师有此需求,给个批处理供参考,可有效阻止它的所有程序联网。本人就是这么干的。
|
评分
-
查看全部评分
|