Home  >  Article  >  Computer Tutorials  >  How to deal with the problem of missing system hosts file?

How to deal with the problem of missing system hosts file?

PHPz
PHPzforward
2024-01-29 13:33:041451browse

The host in the computer plays a very important role for us. If the hosts are lost, various functions will be affected. So, the computer hosts computer file is lost, how do we retrieve it? The following will bring you how to retrieve lost computer hosts. Friends in need, please come and take a look!

What to do if the computer hosts file is lost

1. Click the search box in the taskbar in the lower left corner, enter "cmd" in it, select "Command Prompt", right-click and select "Manage" Run as member".

How to deal with the problem of missing system hosts file?

#2. Click "Yes" in the pop-up prompt window.

How to deal with the problem of missing system hosts file?

3. After entering the new window interface, enter "01for /f %P in ('dir %windir%WinSxShosts /b /s') do copy %P %windir%System32driversetc & echo %P & Notepad %P", press Enter to execute the command.

How to deal with the problem of missing system hosts file?

#4. Then wait patiently for a while, then enter "a" and press Enter.

How to deal with the problem of missing system hosts file?

#5. The last lost hosts file will be automatically opened, and then just close it.

How to deal with the problem of missing system hosts file?

The above is the detailed content of How to deal with the problem of missing system hosts file?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:53xt.com. If there is any infringement, please contact admin@php.cn delete