So if you want to edit the host file, make sure you take a backup of this file elsewhere and then go to the start menu and search notepad. In the search result, right click on the notepad icon and select Run as administrator. This will open Notepad in admin mode, now browse for the hosts file using the file menu and open it. Once you have made the changes you can now save it in the same location as notepad is running in administrator mode.
Your email address will not be published. Please do not reproduce or distribute this article in whole or part, in any form. To link to this page from your website, simply cut and paste the following code to your web page. How to Save a File with Notepad Without the. This page was last updated on 23 November Search This Site. Link to Us. No Spam Policy.
Privacy Policy. Site Map. Getting Started. Web Design. Search Engines. Revenue Making. Also, close the browser windows that are open and reopen them.
The one downside is that this only works on one device — you could just reach for your phone and browse Reddit on that instead.
Still, it's a neat way to create some friction on your work computer. This leads nicely into the last trick, which is to use the hosts file to make your life a little bit easier. If you spend a lot of time adjusting your router's settings, or you have a cool project running on a Raspberry Pi , you'll know that typing in a long IP address is a drag.
Instead, you can use the hosts file to make connecting to other devices on your local network much faster. For example, if your router is at Otherwise your browser might not recognize.
Fortunately there are a whole lot of valid TLDs nowadays. Again, the one downside to this method is that it only works on once device. You'd have to update the hosts files on your other devices to enable the same shortcuts. And that should be just about everything you need to know about the hosts file on Windows And a lot of this knowledge should carry over to Linux and macOS. Did you find this helpful? Are there any other hosts file tricks you know?
Let me know over on Twitter. If you read this far, tweet to the author to show them you care. Tweet a thanks. Learn to code for free. Get started. Forum Donate. Kris Koishigawa. Change it to whatever text editor or other program you want files with no extension to be associated with. When your file is ready, double click on it, to add it to your Windows Registry - and that's it.
When you now open file with no extension it will by opened by the default program. Adding other shell extensions is similar to adding shell extensions for file names with extensions. PSPad A freeware code editor for Windows.
Did this entry help you?
0コメント