Easiest Way to Edit Host File Windows 10 by Jason Ramsey on Friday, June 30th 2017

A good trick to working on a development machine is to edit your host file so that you can keep the same url but point a website to your own box. This can get annoying to edit as you need to be running an Admin editor, here is how you can create a shortcut for this process.

Here are the simple steps you need to take:

  1. Right click on your desktop
  2. Select New > Shortcut
  3. Type 'notepad' as the location
  4. Give the shortcut a name
  5. Right click 'Properties' on the shortcut
  6. To the end of the 'target' text box, append '%SYSTEMROOT%\System32\drivers\etc\hosts' (remember to leave a space)
  7. Click on 'Advanced'
  8. Check Run as Administrator
  9. Then press OK, on both windows

Hopefully this helps! You can also check out my blog post about Creating my First ScreenCast for Youtube

Back to List Next Entry