win10系统hosts文件没了怎么办
时间:2022-04-18 14:55:05
win10系统hosts文件没了怎么办?电脑中hosts文件是一个非常重要的文件,就是将一些常用的网址域名与其对应的IP地址建立一个关联“数据库”,方便用户进行解析访问,但是有的用户想要进行host编辑的时候却发现自己的系统里的host文件没有不见了,那要怎么解决这个问题呢?
Win10hosts文件不见了的解决方法
1、打开C:WindowsSystem32driversetc;
2、打开“查看”选项;
3、去掉“隐藏受保护的操作系统文件”前面的勾,然后确定;
4、刷新一下,就会看到Hosts文件;
5、如果还是没有,则按下Windows徽标键+X键,点击“命令提示符(管理员)”,复制以下命令并在命令提示符中点击鼠标右键,点击“粘贴”,随后按回车键(Enter)执行:
for /f %P in (‘dir %windir%WinSxShosts /b /s’) do copy %P %windir%System32driversetc & echo %P & Notepad %P
当显示“已复制1 个文件。”时即表示命令完成,同时将使用记事本打开 hosts 文件,此时 hosts 文件即恢复。
标签:win10找不到hosts文件,hosts文件没了怎么办
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win10怎么关闭Defender服务?Defender服务关闭方法详解
2023-11-13 04:14:33
![](https://img.aspxhome.com/file/2023/9/48729_0s.jpg)
Win8.1 32位和64位有什么区别 Win8.1 32位和64区别详细介绍
2022-07-02 11:19:43
![](https://img.aspxhome.com/file/2023/29/a253100_0s.jpg)
如何在Mac登陆界面隐藏客人用户
2023-04-08 07:00:24
![](https://img.aspxhome.com/file/2023/8/a216308_0s.jpg)
wps怎样制作简历教程
2022-05-26 08:15:02
在做系统优化时如何彻底清除win7系统的多余加载项
2023-05-11 01:28:49
![](https://img.aspxhome.com/file/2023/29/a254545_0s.jpg)
华为云Welink如何自动收集日志?华为welink功能介绍
2023-10-18 19:43:26
![](https://img.aspxhome.com/file/2023/30/a266882_0s.png)
win10自带系统迁移工具怎么用?Win10自带系统迁移工具使用教程
2022-12-06 08:58:09
![](https://img.aspxhome.com/file/2023/28/a239900_0s.jpg)
Win7/8.1正版用户从29日零点免费升级Win10 可返回旧版
2022-02-21 03:53:20
![](https://img.aspxhome.com/file/2023/28/a248840_0s.jpg)
Win11怎么重装系统Win7?
2022-04-07 16:28:04
![](https://img.aspxhome.com/file/2023/27/a235422_0s.png)
Win10怎么优化内存?优化内存的三种方法介绍
2022-10-12 06:21:58
![](https://img.aspxhome.com/file/2023/26/a219652_0s.jpg)
Win10电脑蓝屏代码0x0000000a怎么解决?0x0000000a蓝屏处理办法
2022-06-24 06:56:48
![](https://img.aspxhome.com/file/2023/26/a220811_0s.jpg)
如何在wps表格中制作表头
2023-07-27 02:29:57
Win10内置图片工具如何旋转图片让它呈现不一样的美
2023-05-21 01:35:29
![](https://img.aspxhome.com/file/2023/29/a251990_0s.jpg)
vcruntime140.dll无法继续执行代码怎么办?
2022-06-20 21:24:08
![](https://img.aspxhome.com/file/2023/1/a271906_0s.jpg)
升级Win10系统之后一开机就蓝屏且电脑不断重启怎么解决?
2023-02-04 16:23:52
![](https://img.aspxhome.com/file/2023/26/a225177_0s.jpg)
免费升级Win10又有新途径 金山毒霸直接升级win10
2022-08-28 22:05:26
![](https://img.aspxhome.com/file/2023/28/a249100_0s.jpg)
win10透明效果明显设置教程?win10透明效果明显设置方法
2023-11-05 13:32:18
![](https://img.aspxhome.com/file/2023/6/47916_0s.jpg)
RANK.EQ引用合并区域
2023-09-16 17:22:26
![](https://img.aspxhome.com/file/2023/0/a142280_0s.png)
win10玩巫师3输入法老是跳出来怎么办?玩巫师3输入法冲突总跳回桌面的解决方法
2022-04-08 08:24:31
![](https://img.aspxhome.com/file/2023/27/a238868_0s.jpg)
Win10消费者预览版升级注意事项详情介绍
2023-06-28 06:21:54
![](https://img.aspxhome.com/file/2023/29/a252121_0s.jpg)