卸载本地测试环境:
@echo off echo 卸载本地测试环境 echo. c: cd if not exist lmhy-testhosts.bak goto backup_not_exists echo 正在还原备份…… copy /y lmhy-testhosts.bak windowssystem32driversetc > null cd windowssystem32driversetc if exist hosts del /q hosts ren hosts.bak hosts echo 完成! echo. echo 正在移除备份…… cd rmdir /s/q lmhy-test echo 完成! echo. goto backup_done :backup_not_exists echo 备份文件不存在,无法恢复。
(注意:安装了360的可能在运行修改时会出现警告框,点击运行就可以了)









