FAQ: Win95 DOS FTP Commands DOS FTP Commands (found in Win95 Reskit) ................................................... 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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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? 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 satisfying than point--shift-select-click-select...of a graphical FTP program. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ How do I get a DOS-Prompt Window and Start FTP? 1. Create a dos-prompt Window (Start Menu, select DOS Prompt). 3.Change your PC's directory to the directory that contains the file you wish to upload (ie "cd a:\") 4.Type "ftp" at the dos prompt and press enter 5.Type "open upload.att.net" and press enter 6.Type in your email-id (do not include the @worldnet.att.net part) and press enter 7.Enter your security_word (not your email password) and press enter 8.Type "binary" to select binary mode transfer and press enter 9.Type "put filename.jpg" (to upload your file a:\filename.jpg) and press enter 10.Repeat as necessary 11.Type "bye" and press enter ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Hints. By default the ftp client works from your current DOS directory. Therefore, change to the directory where you keep your web pages before connecting. Then you only have to type put filename.html etc. You can get a listing of files by typing ls. Next, if you have subdirectories on your site you will have to cd while connected to your directory where you want to upload. The tricky part is when you want to be in the corresponding working directory on both remote and local site. You have to issue a lcd command to the local directory, then a cd command to the remote directory, then you are lined up to do the put. It's tough navigating at the command line, that is why the graphical FTP clients show two panes, one for the local directory and one for the remote directory. Q: When I am using FTP in Windows, I have no problem logging on or uploading. But how do I get back to the root directory for my pages. Or find the files I want to upload once I've started FTP? A: It can be easier to change to the proper directory that you want to upload to prior to starting FTP. But if you learn how to change your local directory, you will have more control over your session. If you started FTP in your /webpages/ directory on your hard disk, but wanted to upload some GIF's from your /images/ directory, you would issue a lcd images command. It means Local Change Directory. With this command you may start your FTP session in any directory. From RFC 640, "Revised FTP result codes": NWG/RFC# 640 JBP NJN 5-JUN-74 16:07 Neigus FTP Reply Codes [7] 125 Data connection already open; transfer starting 225 Data connection open; no transfer in progress 425 Can't open data connection On some systems, the 425 error results from a failed BSD connect(). This can result from network congestion (dropped packets), causing the DATA connect to fail, but leaving the CONTROL connection intact (remember, FTP uses a continuous control connection, and transient DATA connections). 200 type set to I is an informational message confirming BINARY mode. Lines beginning with 200 are system messages. Lines starting with 230 are for custom messages from the site administrator.