1. win+r 输入 cmd,回车

2. 输入:for /f %P in ('dir %windir%\WinSxS\hosts /b /s') do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P

回车

3. C:\Windows\System32\drivers\etc 目录下就会生成 hosts 文件

posted on 2021-06-05 12:19  W1N9s  阅读(167)  评论(0)    收藏  举报