@echo off

::	重写host文件
echo "step 2.download file......"
set url=http://192.168.80.200/hosts
set output=C:\hosts
curl %url% -o %output%

echo "step 3.overwrite file......"
copy /y "C:\hosts" "C:\Windows\System32\drivers\etc"
echo "overwrite success..."

::	更新微信版本
::echo "update wechat......"
::start /wait "" "%~dp0WeChatWin_4.1.9.exe" /S
::echo "update wechat success......"