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
Name:  HOSTS_file.jpg
Views: 5087
Size:  109.3 KB



OPTION ONE
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.
Name:  Unblock.jpg
Views: 4573
Size:  74.1 KB
5. Click on the Shortcut tab, and click on the Advanced button. (see screenshot below)
Name:  Step3.jpg
Views: 4497
Size:  62.5 KB
6. Check the Run as administrator box, and click on OK. (see screenshot below)
Name:  Step4.jpg
Views: 4446
Size:  36.5 KB
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.




OPTION TWO
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
Name:  Step1.jpg
Views: 4395
Size:  93.6 KB
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.
Name:  Step2.jpg
Views: 4415
Size:  71.5 KB
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)
Name:  Step3.jpg
Views: 4497
Size:  62.5 KB
6. Check the Run as administrator box, and click on OK. (see screenshot below)
Name:  Step4.jpg
Views: 4446
Size:  36.5 KB
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





Comment

 HOSTS File - Create a "Edit HOSTS file" Shortcut




Tutorial Tools





Similar help and support threads
Windows 7 Tutorial Category
Remove "Create Shortcut" from file and folder context menu?
Hi Shawn, is there a way to remove "Create Shortcut" from the right-click context menu on a file/folder?
Customization
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
shortcut (lnk file) "Open File Location" not working
I have numerous picture sets in separate folders, and one folder that contains the shortcut to each folder's "cover.jpg" file. When I right click on one of the shortcut files and select "Open File Location" or select "Properties" and then click the "Open File Location" button, I'm taken to a...
General Discussion
Hosts file ignored and replaced with hosts.original
Hello. I am trying to use the hosts file. However both pings and web addresses still bypass the hosts file. I noticed that there is another file in the C:\Windows\System32\drivers\etc directory called 'hosts.original'. When ever I delete this file, it reappears seconds later. I have made sure that...
General Discussion
Is this a fact?; "Windows hosts files eating my bandwith"
A friend told me that I can delete the host files and get some of my bandwith. Is this true? Would windows eat some of my bandwith? (regardless if its the Host Files or not,) ofcourse winupdate is excluded in this question... If so, what steps should I take to maximize my connection?
General Discussion
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 12:54.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App