Home > Article > Computer Tutorials > How to deal with the problem of missing system hosts file?
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!
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".
#2. Click "Yes" in the pop-up prompt window.
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.
#4. Then wait patiently for a while, then enter "a" and press Enter.
#5. The last lost hosts file will be automatically opened, and then just close it.
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!