BrandonTools

Windows tools, made by a guy named Brandon
Welcome to BrandonTools Sign in | Join | Help

Hosts File

File Details
Downloads: 1339 File Size: 300 bytes
Posted By: Haacked Views: 2150
Date Added: Tue, Mar 27 2007

During web development, I often need to edit my hosts file for various reasons. For example, when testing cookies for a domain, but debugging on a local machine, I'll map the domain name to 127.0.0.1.

Usage:

hosts 

Comments
 

nik said:

I've installed the "hosts" extension which is a really great idea, but flawed in execution. It seems to hardwired to look in c:\windows\system32\drivers\etc, which is fine if that's where Vista is installed. On my system (for reasons we won't go into) I have two installs, one on C: and one on J:. the J: install is the normal boot. It took me a while to realize why my newly edited hosts file wasn't working, then I worked out that the "hosts" command was editing the wrong file.
Sun, Jun 03 2007 9:24 AM
 

nik said:

I've worked out how to fix this myself, edit the file and just replace the "c:/Windows" in the file with "%WINDIR%" Also if you prefer Vim to notepad, just change the command to vim instead of notepad
Mon, Jun 04 2007 11:00 AM

Add Comment

Name (required)
Web Site (optional)
Comment (required)
Add

Powered by Community Server (Personal Edition), by Telligent Systems