Summary: This batch file will make it a bit easier to fix your ‘hosts’ file.
Requirements:
- Windows 2000 / XP / Vista
Code:
@echo off cls echo Fix the Host File echo By Blake Johnson echo http://www.blakeanthonyjohnson.com echo. echo. echo Are you blocked from a specific web site? Find the domain name and echo if it is in the list, remove it. Problem should then be solved. echo. pause echo. echo Remove Read-only and System attributes from the Hosts file... attrib -s -r %windir%system32driversetchosts echo Done. echo. echo Open the Hosts file for editing... notepad %windir%system32driversetchosts echo Done. echo. echo Apply the Read-only and System attributes to the Hosts file... attrib +s +r %windir%system32driversetchosts echo Done. echo. echo. echo Assuming you made the changes you intended to make, you should echo be good to go. echo. pause