不小心删除或者修改hosts文件后出问题,想要将hosts文件恢复到原始状态方法 1、Win+s搜索cmd,右键以管理员身份打开 2、输入指令 指令如下: for /f %P in ('dir %windir%\WinSxS\hosts /b /s') do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P 3、等待片刻提示输入a 4、一般会弹出想要的文件,关闭即可;若无效则重启电脑即可。