发新话题
打印

[转贴] FS2YOU上传下载补丁

FS2YOU上传下载补丁

复制内容到剪贴板
代码:
@echo off
@color 0A
:start
cls
@title FS2YOU上传下载补丁V1.3版
echo --本补丁用于添加fs2you相关域名的本地解析,不会对你的系统造成任何危害--
echo ┏━━━━━━━━━━━━━━━━━━┓
echo ┃       FS2YOU上传下载补丁V1.3版     ┃
echo ┃  已经应用过此补丁,不需要重新应用  ┃
echo ┃  你可以随时关闭窗口,中断补丁运行  ┃
echo ┃     感谢支持 手机高清影视论坛      ┃
echo ┃         http://www.pdahd.cn        ┃
echo ┃      Writen BY vadera@pdahd.cn     ┃
echo ┗━━━━━━━━━━━━━━━━━━┛
echo -- 请选择要执行的操作,按1安装补丁,按2恢复原来的hosts文件
echo -- 如果安装过较低的版本或者检测已经安装过此补丁的话,请先按2恢复
echo --然后重新安装


echo 1 安装 ------安装此补丁
echo 2 恢复 ------恢复原始hosts文件
echo 3 退出 ------退出程序
echo 直接回车=刷新 1然后回车=安装 2然后回车=恢复 3然后回车=退出

@set choose=""
@set /p choose=
if /I "%choose%"=="1" goto :install
if /I "%choose%"=="2" goto :recover
if /I "%choose%"=="3" (exit)
goto :start

:install
cls
@echo ------------------------------------------------------------------
@echo 正在检测是否使用过补丁...
@ping -n 3 0 >>nul
@findstr /i "fs2you" %windir%\system32\drivers\etc\hosts>>%windir%\system32\drivers\etc\pdahd
@for /f %%a in (%windir%\system32\drivers\etc\pdahd) do if not %%~za equ 0B (goto :end)
cls
@echo 你没有使用过此补丁
@echo.
@echo step1:下面将往你本地静态域名解析文件hosts中添加fs2you相关解析记录
@pause
@echo 正在添加信息,请稍候...
@ping -n 3 0 >nul
@attrib -r "%windir%\system32\drivers\etc\hosts"
@echo.>>%windir%\system32\drivers\etc\hosts
@echo ------fs2you patch by vadera@pdahd.cn------>>%windir%\system32\drivers\etc\hosts
@echo        59.63.157.25        www.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        222.169.230.101        dyn.www.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.32.232.195 file1.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        222.169.230.98        file2.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        221.204.246.79 file3.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.150.85.80 file4.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        60.2.139.27 file5.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.184.189.10 file6.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.174.62.132 file7.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        58.211.75.49 file8.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.134.84.238 file9.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.156.40.181 file10.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        218.75.151.4 file11.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        58.211.75.31 file12.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        124.94.101.133 file13.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        221.204.246.115 file14.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        218.75.151.10 file15.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        58.218.209.126 file16.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.157.152.173 file17.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        125.46.41.27 file18.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        125.91.11.223 file19.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.53.48.134 file20.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.53.48.136 file21.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.53.48.144 file22.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.139.106.204 file23.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.53.48.172 file24.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        124.94.101.146 file25.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.166.111.227 file26.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.32.232.195 cachefile1.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        222.169.230.98 cachefile2.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        221.204.246.79 cachefile3.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.150.85.80 cachefile4.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        60.2.139.27 cachefile5.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.184.189.10 cachefile6.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.174.62.132 cachefile7.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        58.211.75.49 cachefile8.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.134.84.238 cachefile9.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.156.40.181 cachefile10.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        218.75.151.4 cachefile11.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        58.211.75.31 cachefile12.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        124.94.101.133 cachefile13.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        221.204.246.115 cachefile14.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        218.75.151.10 cachefile15.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        58.218.209.126 cachefile16.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.157.152.173 cachefile17.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        125.46.41.27 cachefile18.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        125.91.11.223 cachefile19.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.53.48.134 cachefile20.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.53.48.136 cachefile21.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.53.48.144 cachefile22.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.139.106.204 cachefile23.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        59.53.48.172 cachefile24.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        124.94.101.146 cachefile25.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo        61.166.111.227 cachefile26.fs2you.com>>%windir%\system32\drivers\etc\hosts
@echo ------fs2you patch end------>>%windir%\system32\drivers\etc\hosts
@attrib +r "%windir%\system32\drivers\etc\hosts"
cls
@echo 域名解析记录已经添加完毕
@echo ------------------------------------------------------------------
@echo.
@echo step2:下面将更新你的域名缓存,请关闭你的浏览器,IE/FIREFOX/遨游等……
@pause
@echo.
@echo 请确认浏览器已关闭!
@pause
@ipconfig /flushdns
@ipconfig /flushdns
cls
@echo 域名解析缓存已更新
@echo ------------------------------------------------------------------
@echo.

@echo 补丁已经顺利执行完毕,请直接关闭窗口或按任意键退出!
@echo 谢谢你的使用!   Writen By  vadera@pdahd.cn
@pause
goto :start


:recover
cls
@echo off
@title 恢复hosts文件
echo --恢复时会先删掉hosts再重新写入--
echo ┏━━━━━━━━━━━━━━━━━━┓
echo ┃  恢复hosts文件 BY vadera@pdahd.cn  ┃
echo ┗━━━━━━━━━━━━━━━━━━┛
echo.
pause
@attrib -r "%windir%\system32\drivers\etc\hosts"
@del "%windir%\system32\drivers\etc\tmp"
@del "%windir%\system32\drivers\etc\pdahd"
@del "%windir%\system32\drivers\etc\hosts"
@echo 127.0.0.1 localhost >"%windir%\system32\drivers\etc\hosts"
@attrib +r "%windir%\system32\drivers\etc\hosts"
cls
echo ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
echo ┃ hosts恢复完毕,按任意键退出                                 ┃
echo ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
pause
goto :start


:end
cls
echo 你已经安装过此补丁了!
pause
goto :start
将它存为 FS2YOU上传下载补丁.cmd

[ 本帖最后由 轻舞飞扬 于 2008-8-11 08:24 PM 编辑 ]
附件: 您所在的用户组无法下载或查看附件

TOP

是个批处理啊。。。谢谢LZ分享。。。。。
忘记历史意味着背叛!

TOP

发新话题