Creating FTP “Shortcuts” Using the Windows HOSTS File

Windows XP has an editable file called HOSTS. It is a text file and located typically at:

c:\windows\system32\drivers\etc\HOSTS

This is a plain text file that can be edited. If you use FTP quite a bit, you can use your HOSTS file as a “shortcut” of sorts to assign easy-to-remember local hostnames for FTP server IP addresses. It’s easy to do and only takes a few minutes. See video below for details.

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

  • http://nonesuch curleb

    Hey, Rich…

    Just wanted to thank you for your tutorial here, as well as Jason Faulkner’s one re running Ubuntu w/in WinXP. Sweet…!

    No comparison at all, but here’s an even quicker shortcut for using FTP via URI in exchange (one that even guarantees a GUI window for those non-cmd users):

    ftp://login:*@subdmn.ftp_site.com/../../../my_dir

    Store this as a shortcut to a frequent FTP location and you have an Explorer-based FTP client ready to go.

    Everything up to the @-sign is universal and will enforce a login prompt via Explorer; in domain use it will default to your login id. The site info is whatever your shortcut would need to point to, while the “../../../my_dir” will vary according to your remote host’s directory structure. The example here refers to a UNIX-side $HOME that is 3-levels below the targets parent directory. For example, a Solaris UNIX $HOME of /export/home/my_user would need to back-track to root before trying to get to the target.

    Again, not much compared to the guest Ubuntu tutorial, but this serves to deaden the pain from distributed users constantly confused by FTP clients.

  • Dinis

    how do I do this on cmd if i wanted to download files from a ftp server to a different server, by just double clicking on the cmd. thanks

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: