Kompx.com or Compmiscellanea.com

FTP in DOS

Operating systems : MS-DOS 6.0+, FreeDOS 1.0+

FTP in DOS. 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 [ Download ]

2. Packet driver for Ethernet network card:

http://www.crynwr.com/drivers/

http://www.georgpotthast.de/sioux/packet.htm

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

mTCP - GNU GPL v3.


Aliosque subditos et thema


CSS. Target Firefox only


CSS targeting Firefox web browser only: This text is red in Firefox HTML / XHTML. Code: <p>This text is red in Firefox</p> CSS. Code: @-moz-document url-prefix() {p {color: #f00;}} Unlike the method of styling elements for Opera browser only, it is essentially a hack - since the rule originally is intended for a different purpose. But lack of support in browsers other than Firefox allows to isolate code for use by Firefox web browser only. [ 1 ] Other browsers with Gecko web browser engine, like SeaMonkey 1.0+ or older Netscape 9.0, also support the hack. [ 2 ] Various versions of Internet Explorer, Google Chrome, Opera, Safari react to the hack as they are meant to - these browsers ignore the whole code of the Firefox specific hack. [ 3 ] There is also one more browser where text gets red - ELinks, an advanced text-based web browser with some support for CSS.

Screenshots in DOS


There are several programs for taking screenshots in DOS. SNARF, for instance. Using this application succeeded in taking screenshots in most of the cases. Also, the screenshots' quality (.BMP files) by SNARF results to be the highest among the programs tested: ScreenThief, VideoThief, FLIP, GRABBER, SNARF. Using SNARF with default settings is straightforward, but there is a shortcoming - SNARF always saves screenshots to the folder where the user is currently in. That could be inconvenient or unacceptable. And there is no obvious way to change it. But there is a roundabout option. The initial idea had been found on this page. The result based on it: 1. SNARF [ Download ] 2. Open SNARF.EXE in a text editor in text mode (not hex), find snarf000.bmp and replace it for s:scn000.bin 3. Create a batch file, S.BAT for example, where besides a string for starting SNARF.EXE will be a command assigning the path to the folder screenshots will be saved into to a virtual drive S: The folder and path may be any: C:\SOFT\SNARF.EXE SUBST S: C:\SCREENS\ 4. Start SNARF: S [or S.BAT] 5. To take a screenshot: Alt + S There will be two beeps. The first at the beginning and the second one as a sign the process has completed successfully. After the screenshots are taken, go to the folder where they are saved in and replace the file extensions from .BIN to .BMP SNARF - Freeware.