Win10hosts文件不见了怎么办?Win10hosts文件不见了的解决方法
时间:2022-12-04 06:06:17
Win10系统的电脑中hosts文件是一个非常重要的文件,不过最近有一些小伙伴想要修改hosts文件的时候却发现自己的hosts文件不见了,那么碰到这种情况应该怎么办呢?下面就和小编一起来看看有什么解决方法吧。
Win10hosts文件不见了的解决方法
1、打开C:\Windows\System32\drivers\etc;
2、打开“查看”选项;
3、去掉“隐藏受保护的操作系统文件”前面的勾,然后确定;
4、刷新一下,就会看到Hosts文件;
5、如果还是没有,则按下Windows徽标键+X键,点击“命令提示符(管理员)”,复制以下命令并在命令提示符中点击鼠标右键,点击“粘贴”,随后按回车键(Enter)执行:
for /f %P in (‘dir %windir%\WinSxS\hosts /b /s’) do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P
当显示“已复制1 个文件。”时即表示命令完成,同时将使用记事本打开 hosts 文件,此时 hosts 文件即恢复。
标签:win10教程
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
win10日历事件提醒设置方法
2022-09-15 08:07:30
![](https://img.aspxhome.com/file/2023/3/a296601_0s.jpg)
如何调整 Windows 10菜单视觉效果显示速度延迟
2023-10-19 22:48:25
![](https://img.aspxhome.com/file/2023/29/a262442_0s.jpg)
Win10 Mobile预览版10166升级安装体验:下载0%的解决办法
2023-07-29 11:25:19
![](https://img.aspxhome.com/file/2023/28/a249162_0s.jpg)
如何重置您的 AirPods?AirPods 重置方法
2022-03-03 18:37:31
![](https://img.aspxhome.com/file/2023/9/a196059_0s.png)
WingIDE Pro 7如何绕过Wing?Wing 7使用教程
2023-08-30 17:35:50
![](https://img.aspxhome.com/file/2023/0/a212960_0s.png)
Office提示你的许可证并非正版怎么关闭?
2023-10-25 09:27:07
![](https://img.aspxhome.com/file/2023/7/16017_0s.png)
两个方法轻松解决Win7没有管理员权限的问题
2023-10-01 22:36:51
![](https://img.aspxhome.com/file/2023/27/a233817_0s.jpg)
XP浏览器网页打开速度慢怎么解决?
2023-11-06 15:08:57
![](https://img.aspxhome.com/file/2023/2/a286892_0s.jpg)
安装Windows10系统后网速变慢的解决方法
2022-07-09 16:30:02
![](https://img.aspxhome.com/file/2023/3/a301781_0s.jpg)
Win10怎么取消开机密码和PIN?Win10怎么设置让电脑自动登录?
2022-11-27 09:58:07
![](https://img.aspxhome.com/file/2023/8/52328_0s.png)
ppt怎么制作阶梯式减法表? ppt减法表课件的做法
2023-11-22 01:22:05
![](https://img.aspxhome.com/file/2023/10/a345430_0s.jpg)
微软输入法全角和半角的切换方法
2023-03-04 04:34:50
![](https://img.aspxhome.com/file/2023/30/a269040_0s.jpg)
WPS PPT如何实现幻灯片两张放映方式的不同
2022-12-04 03:36:45
![](https://img.aspxhome.com/file/2023/3/a187123_0s.jpg)
PPT怎么录屏
2022-05-05 17:07:51
![](https://img.aspxhome.com/file/2023/10/a351618_0s.jpg)
win7怎么关闭自动碎片整理服务?
2022-05-27 03:29:52
![](https://img.aspxhome.com/file/2023/29/a251178_0s.jpg)
cajviewer怎么复制文字?
2022-08-30 21:22:11
![](https://img.aspxhome.com/file/2023/1/a273548_0s.png)
werfault.exe该内存不能为written的原因及解决方法
2023-10-17 06:33:50
![](https://img.aspxhome.com/file/2023/3/a301876_0s.png)
AutoCAD软件怎么绘制矩形 AutoCAD矩形绘制教程
2022-10-07 03:46:55
WPS PPT如何将幻灯片分节及隐藏显示的方法
2023-05-12 19:06:20
![](https://img.aspxhome.com/file/2023/5/a187195_0s.jpg)
常用格式设置--Word 2007书籍排版完全手册4
2022-12-04 20:27:08
![](https://img.aspxhome.com/file/2023/1/22301_0s.gif)