屏蔽coreldraw联网批处理

自动屏蔽coreldraw联网的批处理

@echo off
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
cd /d "%~dp0"
@echo off
xcopy /s/y "%~dp0PASMUTILITY.dll" "C:\Program Files\corel\PASMUtility\v1\"
attrib -R %Systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 apps.corel.com >> %Systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 mc.corel.com >> %Systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 origin-mc.corel.com >> %Systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 iws.corel.com >> %Systemroot%\system32\drivers\etc\hosts
echo 127.0.0.1 ipm.corel.com >> %Systemroot%\system32\drivers\etc\hosts
attrib +R %Systemroot%\system32\drivers\etc\hosts
echo Done!

你可能感兴趣的:(屏蔽coreldraw联网批处理)