Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: HOSTS File - Create a "Edit HOSTS file" Shortcut


HOSTS File - Create a "Edit HOSTS file" Shortcut

How to Create a "Edit HOSTS file" Shortcut in Windows 7 and Vista
Published by Brink
16 Apr 2011
Published by

How to Create a "Edit HOSTS file" Shortcut in Windows 7 and Vista

information   Information
The HOSTS file is a .txt file used in Vista and Windows 7 to map hostnames to IP addresses. Your computer checks this file first to resolve any network names to its corresponding IP address before it tries to check the Internet.

The hosts file is located in the C:\Windows\System32\drivers\etc folder. Normally you would open Notepad with Run as administrator and open (File - Open) the the hosts file from within Notepad to edit it.

This will show you how to download or create a elevated Edit HOSTS file shortcut to make editing the HOSTS file easier to do in Windows 7 and Vista.

warning   Warning
You must be logged in as an administrator to be able to do this tutorial, and to be able to use the created Edit HOSTS file shortcut.

EXAMPLE: HOSTS File
HOSTS File - Create a "Edit HOSTS file" Shortcut-hosts_file.jpg



HOSTS File - Create a "Edit HOSTS file" Shortcut OPTION ONE HOSTS File - Create a "Edit HOSTS file" Shortcut
To Download the "Edit HOSTS file" Shortcut
1. Click on the Download button below to download the file below.
Edit_HOSTS_file.zip
download
2. Click on Save, and save the .zip file to the desktop.

3. Open the .zip file and extract (drag and drop) the Edit HOSTS file shortcut to the desktop.

4. Right click on the downloaded Edit HOSTS file shortcut, click on Properties.

4. Click on the General tab, Unblock button, and Apply button. (see screenshot below)
NOTE: If you do not have a Unblock button under the General tab, then the shortcut is already unblocked and you can continue on to step 5.
HOSTS File - Create a "Edit HOSTS file" Shortcut-unblock.jpg
5. Click on the Shortcut tab, and click on the Advanced button. (see screenshot below)
HOSTS File - Create a "Edit HOSTS file" Shortcut-step3.jpg
6. Check the Run as administrator box, and click on OK. (see screenshot below)
HOSTS File - Create a "Edit HOSTS file" Shortcut-step4.jpg
7. Click on OK. (see screenshot below step 5)

8. You can now Pin to Taskbar or Pin to Start Menu this shortcut, assign a keyboard shortcut to it, or move it where you like for easy use.

9. When done, you can delete the downloaded .zip file if you like, or save it to use again later.




HOSTS File - Create a "Edit HOSTS file" Shortcut OPTION TWO HOSTS File - Create a "Edit HOSTS file" Shortcut
To Manually Create the "Edit HOSTS file" Shortcut
1. Right click on a empty area on desktop, and click on New and Shortcut.

2. Copy and paste the location below into the location area, and click on the Next button. (see screenshot below)
notepad.exe C:\Windows\System32\drivers\etc\hosts
HOSTS File - Create a "Edit HOSTS file" Shortcut-step1.jpg
3. Type Edit HOSTS file for the name, and click on the Finish button. (see screenshot below)
NOTE: You can name this anything you would like though.
HOSTS File - Create a "Edit HOSTS file" Shortcut-step2.jpg
4. Right click on the new Edit HOSTS file shortcut on the Desktop and click on Properties.

5. Click on the Shortcut tab, then click on the Advanced button. (see screenshot below)
HOSTS File - Create a "Edit HOSTS file" Shortcut-step3.jpg
6. Check the Run as administrator box, and click on OK. (see screenshot below)
HOSTS File - Create a "Edit HOSTS file" Shortcut-step4.jpg
7. Click on OK. (see screenshot below step 5)

8. You can now Pin to Taskbar or Pin to Start Menu this shortcut, assign a keyboard shortcut to it, or move it where you like for easy use.
That's it,
Shawn




Reply

 HOSTS File - Create a "Edit HOSTS file" Shortcut




Thread Tools




Similar help and support threads
Thread Forum
Can't Edit Hosts File
I'm unable to edit my Hosts file located in C:\Windows\System32\drivers\etc folder. I am using Notepad by opening it via "Run as Administrator." Also, I have changed to properties of Hosts to allow it's modification. For some reason the "Special Permissions" box is ghosted out and not...
General Discussion
Windows 7- "hosts" file is missing-what to do?
The "hosts" file in C:\Windows\System32\drivers\etc is missing. The only files are lmhosts.sam, networks, protocol and services. I tried searching for the "hosts" file but couldn't find it in my pc. What should I do here?
System Security
Unable to edit hosts file
Hello, I have a laptop that it doesn't allow me to edit hosts file. I tried many ways first I tried to give myself permissions in properties - edit but it gave me 'access denied' when trying to apply.. And I tried a method I found on google is to open a notepad with administration then open the...
General Discussion
Windows Defender gave me a malware warning (file name = "hosts")
So... my Windows Defender gave me a warning earlier ago. It said I had an infected system file named "hosts". I already removed the file from my computer, but it can still be found on my history. Look: http://i.imgur.com/umsL5WX.png What is that malware about anyway? I know I already removed...
System Security
How to edit the Hosts file in 7
Hi people :) I need help here, I have some older applications that wont work unless i change their 'update ip', (dont know what its called), in the hosts file. I have found numerous ideas on how to edit in the hosts file, but none of them has worked so far. When I run Notepad as...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:09.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App