编辑hosts后立即生效的方法

Publish: October 14, 2017 Category: 文档 No Comments

做web开发和测试的,难免需要经常修改hosts来指定某个域名访问某个特定的IP;在windows中,每次修改了C:\windows\system32\drivers\etc\hosts,都需要重启...

使用bat批处理命令行更改写入编辑host文件

Publish: January 8, 2014 Category: 文档 No Comments

// 寻找含有原纪录的行删除,并保存bak备份。 findstr /v "www.test.com" "C:\Windows\System32\Drivers\etc\hosts">>C:\W...