KOMPX.COM or COMPMISCELLANEA.COM   

FTP in DOS

FTP in DOS with mTCP.

mTCP is a suite containing several utilities, one of which is FTP. It is similar to the FTP client of various Windows, running in Command Prompt.

In order to install and use mTCP:

1. mTCP [ Home page ].

2. Packet driver for Ethernet network card:

3. Create a folder, for example C:\DRIVERS\. Put there: a packet driver for Ethernet network card.

4. Set up network. For example, by means of Microsoft Network Client 3.0 [ How-to page ]

5. Start packet driver. In the case discussed it is:


C:\DRIVERS\PCIPKT.COM 0x60

6. Unpack the archive with mTCP into a folder, C:\SOFT\MTCP for instance, and create a tcp.cfg file in it with the strings:


PACKETINT 0x60
HOSTNAME FTP_IN_DOS

The value of PACKETINT - the interrupt number used in the packet driver starting. The value of HOSTNAME - any.

7. Start DHCP.EXE (DHCP will set up mTCP for work with the network):


DHCP

8. Start FTP:


FTP [ FTP address / host ]

There will be a prompt for a name, after that - the password. Next, it is better to switch to passive mode:


XFERMODE PASSIVE

[ The list of the main commands supported by FTP of mTCP is available in ftp.txt, included in mTCP suite archive ].

To exit:


QUIT

FTP.BAT

For batch file to start the FTP client:


@echo off
C:\DRIVERS\PCIPKT.COM 0x60
DHCP
FTP

Operating systems
More