Howto: Access Windows Host File Using .bat File

June 27, 2010

Open up notepad or any text editor and paste this in:

C:\WINDOWS\NOTEPAD.EXE C:\WINDOWS\SYSTEM32\DRIVERS\etc\HOSTS

Save the file as ‘hosts.bat’ on your desktop