[BYRON.COM - WEB HOSTING SPECIALISTS]
| HOME | APPLY !! | HOSTING | DESIGN | SUPPORT |

This section describes the processes involved to use DOS ftp (comes with win95/98 and is free! )..

DOS FTP COMMANDS
COMMANDFUNCTION
help Displays DOS FTP help.
ascii Sets transfer mode to ASCII (for text files and HTML pages).
binary Sets transfer mode to BINARY (for graphics and sound files).
cd Changes working directory on the remote computer.
delete Deletes files on the remote computer.
disconnect Breaks the ftp connection but keeps FTP client open.
get Copies a remote file to the local computer using the current file transfer type (the local dir is the one your launched FTP in or changed to with the lcs command).
lcd Changes the working directory on the local computer.
ls Displays list of remote directory's files and sub-directories.
mdelete Multiple delete of files.
mget Copies multiple remote files to local computer.
mkdir Creates a remote directory.
mput Copies multiple local file to the remote computer.
put Copies a local file to the remote computer.
rename Renames remote files.
rmdir Deletes a remote directory.
type Sets or displays the file transfer type.

Uploading into a Sub-directory.

If I you have a sub-dir named "images" type:

  • cd images
  • put my.gif
  • put your.gif

and so on for each graphic file.

You move around the directories in FTP like you would at the DOS command line. By default filename "globbing" is on. This means you can use wildcards in local file and path names. To upload all .gif files to your images directory type:

  • cd images
  • mput *.gif

This should upload all gifs to your current remote working directory from your current local working directory.

BTW you can disconnect without exiting FTP by typing disconnect.


Q. What is the best way to get a lot of html files and graphics to a sub-directory of my PWP directory using DOS FTP?

A. Use mput. It uploads multiple *files* :

  • mput *.gif

will upload all your gifs to your remote working directory.It will ask Y/N for each file unless you turn it off by typing "prompt" (the command toggles on/off).

Sometimes, typing mput *.gif is a lot more satisfyingthan point--shift-select-click-select...of a graphical FTP program.


Q. How do I get a DOS-Prompt Window and Start FTP?

A. Do the following

  1. Create a dos-prompt Window (Start button / programs / select DOS Prompt).
  2. Change your PC's directory to the directory that contains the file you wish to upload (ie "cd a:\")
  3. Type "ftp" at the dos prompt and press enter
  4. Type "open yourdomain.com" and press enter
  5. Type in your username (do not include the "dot-com" extension) and press enter
  6. Enter your password (same as your email password) and press enter
  7. Type "binary" to select binary mode transfer and press enter
    • or "ascii" to transfer an html / perl / cgi file
  8. Type "put filename.jpg" (to upload your file a:\filename.jpg) and press enter
    • or "mput *.jpg" for multiple files
  9. Repeat as necessary
  10. Type "bye" and press enter

| HOME | APPLY !! | HOSTING | DESIGN | SUPPORT |
[BYRON.COM - WEB HOSTING SPECIALISTS]