@ECHO OFF&PUSHD %~DP0 &TITLE rem 将该文件存为 C:\Windows\System32\drivers\etc\hosts.cmd,可以方便的编辑 hosts Rd "%WinDir%\system32\test_permissions" >NUL 2>NUL Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行!&&Pause >nul&&Exit) Rd "%WinDir%\System32\test_permissions" 2>NUL echo 请勿关闭本窗口,本程序将在编辑完成后自动刷新 DNS notepad C:\Windows\System32\drivers\etc\hosts ipconfig /flushdns