Reset Internet settings with simple .bat file@Echo on
pushd\windows\system32\drivers\etc
attrib -h -s -r hosts
echo 127.0.0.1 localhost>HOSTS
attrib +r +h +s hosts
popd
ipconfig /release
ipconfig /renew
ipconfig /flushdns
netsh winsock reset all
netsh int ip reset all
echo
cls
cls
echo Script complete. System will now shut down. Close or save any open files before continuing.
pause
shutdown -r -t 1
del %0
Save as
flush.bat to your desktop.
Double click on the
flush.bat file to run it.
Vista and
Windows 7...
right click the .bat file and choose to
run as Administrator. Your computer will reboot itself.
Important: The bat file will be deleted after reboot. if you wish to keep the file remove the
del %0 code