阳光网驿-企业信息化交流平台【DTC零售连锁全渠道解决方案】

 找回密码
 注册

QQ登录

只需一步,快速开始

扫描二维码登录本站

手机号码,快捷登录

老司机
查看: 2012|回复: 3

[求助] 打了屏蔽语句,请问一下,如何恢复为原来没打之前的HOST状态?

[复制链接]
  • TA的每日心情
    慵懒
    2022-3-16 21:30
  • 签到天数: 734 天

    [LV.9]以坛为家II

    发表于 2015-7-25 03:42:17 | 显示全部楼层 |阅读模式
    屏蔽语句为这样的,有办法恢复为原来的的HOST么? 因为打过语句,现在想打一个旧版的官方补丁,打不上去。在没打屏蔽语句的电脑上,同样的旧版官方补丁是可以打的。

    @echo off
    if exist %ComSpec% goto nt else goto 9x
    :9x
    set etc=%windir%\
    set hosts=%windir%\hosts
    goto menu
    :nt
    if exist %windir%\system32\cmd.exe goto winnt32
    if exist %windir%\system64\cmd.exe goto winnt64
    :winnt32
    set etc=%windir%\system32\drivers\etc
    set hosts=%windir%\system32\drivers\etc\hosts
    goto menu
    :winnt64
    set etc=%windir%\system64\drivers\etc
    set hosts=%windir%\system64\drivers\etc\hosts
    goto menu
    :menu
    attrib -s -a -r %hosts%
    find "202.104.120.79        kdtsplatform.kingdee.com" %hosts% > nul
    if %errorlevel% == 1 (
      @echo.>>%hosts%
      @echo 127.0.0.1       kdtsplatform.kingdee.com >>%hosts%
      @echo 127.0.0.1        patch.cmcloud.cn >>%hosts%
      @echo 127.0.0.1        api.cmcloud.cn >>%hosts%
      @echo 127.0.0.1        cmcloud.cn >>%hosts%
      @echo 127.0.0.1        service.kingdee.com >>%hosts%
      @echo 127.0.0.1       sso.cmcloud.cn >>%hosts%
      @echo 127.0.0.1        kingdee.com >>%hosts%
      @echo 127.0.0.1        www.kingdee.com >>%hosts%
      @echo 127.0.0.1        cssotest.kingdee.com >>%hosts%
      @echo 127.0.0.1        downloads.cmcloud.cn >>%hosts%
      @echo 127.0.0.1        images.cmcloud.cn >>%hosts%
      @echo 127.0.0.1       id.kingdee.com >>%hosts%
      @echo 127.0.0.1       kdsso.cmcloud.cn >>%hosts%
      @echo 127.0.0.1       order100.kingdee.com >>%hosts%
      @echo 127.0.0.1       ip196.hichina.com >>%hosts%
      @echo 127.0.0.1       ptr110.40.dnion.com >>%hosts%
      @echo 127.0.0.1       www.4008836836.com >>%hosts%
      @echo 127.0.0.1       4008836836.com >>%hosts%
      @echo 127.0.0.1        reg.kingdee.com >>%hosts%
    )
    attrib -s -a +r %hosts%
    echo 写入成功!按任意键退出,并要重启电脑才生效....
    pause

    exit

    楼主热帖
    启用邀请码注册,提高发帖质量,建设交流社区
  • TA的每日心情
    开心
    2011-2-17 08:28
  • 签到天数: 114 天

    [LV.6]常住居民II

    发表于 2015-7-25 08:06:04 | 显示全部楼层
    %windir%\system32\drivers\etc\hosts或者
    %windir%\system64\drivers\etc\hosts


    这个文件,用记事本打开,删除里面的内容就可以了

    启用邀请码注册,提高发帖质量,建设交流社区
  • TA的每日心情

    2015-12-2 09:54
  • 签到天数: 355 天

    [LV.8]以坛为家I

    发表于 2015-7-25 08:32:32 | 显示全部楼层
    用记事本打开,删除里面的内容就可以了!
    - 本文出自阳光网驿--企业信息化专家,原文地址:http://bbs.sunwy.org/thread-204301-1-1.html
    启用邀请码注册,提高发帖质量,建设交流社区
  • TA的每日心情
    郁闷
    2015-10-11 21:30
  • 签到天数: 19 天

    [LV.4]偶尔看看III

    发表于 2015-7-25 10:02:21 | 显示全部楼层
    可以用微软官方的修复工具
    MicrosoftFixit50267.rar (222.87 KB, 下载次数: 38)
    启用邀请码注册,提高发帖质量,建设交流社区
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表