Join
the community
Sign-up
Ask a question »

Connecting to an FTP server under MS-DOS

April 2013

The FTP command is used to connect to remote servers and download files. There is a plethora of FTP application software available today that provide users with elaborate graphical user interfaces. However, it is possible to connect to an FTP server under MS-DOS as well. The 'FTP' and the 'NCFTP' commands can be used on the MS-DOS command prompt to initiate an FTP connection with a remote computer. Instead of entering the commands, a batch file can be created where the FTP commands are written so that they can be executed one by one to connect to an FTP server under MS-DOS.

Connecting to an FTP server under MS-DOS




The ftp command allows you to get connected using command lines. Some of these options provide an automatic connection; this is done through a list of commands stored on a text file.
  • ftp -i -s:cmd_ftp.txt


On cmd_ftp.txt, go to the following line:

open ftp.kioskea.net   
user MyLogin MyPassword   
binary 


You will be able to select a specific port, simply by adding the port number after the server name (don't forget to leave a space between each value).

Just try it:
  • Start / Run / cmd /k ftp -?


For advanced options, it's recommended that you use the ncftp command - note that the server must be downloaded and installed before use:

See also

Knowledge communities.

Published by netty5 - Latest update by Celia Gatward
This document entitled « Connecting to an FTP server under MS-DOS » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.
Receive our newsletter

health.kioskea.net

Basic MS-Dos commands
Using Device Manager under Ms-Dos