How to Upload Files With CMD

You can make files on your computer accessible to anyone with an Internet connection by uploading them to a Web server. While some Web hosts and services let you upload files through your browser, it can be faster to use FTP -- short for File Transfer Protocol -- to upload files. The command line utility, sometimes abbreviated as CMD, can act as a bare-bones FTP client, letting you upload specific clients to your Web server with just a few commands. You must have the host name and password to the Web server in order to upload files.

Things You'll Need

  • Web server host name, username and password
Show More

Instructions

    • 1

      Click "Start," then "All Programs," then "Accessories," and then "Command Prompt."

    • 2

      Type the following command at the prompt, and press "Enter:"

      ftp hostname.com

      Replace "hostname.com" with your server's host name. Generally, if you are uploading to domain.com, the host name will also be hostname.com or some variation, such as ftp.hostname.com. Consult your Web hosting provider if you are unsure.

    • 3

      Enter your username and password when prompted. You are now connected to the server.

    • 4

      Type the following command, and press "Enter" to upload a file:

      put filename

      Replace "filename" with the exact name of the file you want to upload, including the extension. For example, to upload a file called "index.html" you would enter:

      put index.html

Tips & Warnings

  • You can use wild cards to upload multiple files at once. For example, to upload all files in the directory ending in *.html, you type: put *.html. Refer to a DOS commands reference (see Resources) for more shortcuts.

Related Searches:

References

Resources

Comments

You May Also Like

Related Ads

Featured