Supriya Ghosh (Editor)

PRINT (command)

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
PRINT (command)

In computing, print command was introduced in MS-DOS/IBM PC DOS 2.0 in order to provide single-user print spooling capability. It is roughly similar to that provided by the UNIX System V lp and BSD lpr print spooler systems. The command is also available in the DEC RT-11 and Microsoft Windows operating systems.

Contents

Background

In early versions of DOS, printing was accomplished using the copy command: the file to be printed was "copied" to the file representing the print device. Control returned to the user when the print job completed. Beginning with DOS 2.0, the print command was included to allow basic print spooling: the ability to continue to use the computer while printing occurred in the background, and the ability to create a queue of jobs to be printed.

Description

The print command allowed specifying one of many possible local printer interfaces, and could make use of networked printers using the net command. A maximum number of files and a maximum buffer size could be specified, and further command-line options allowed adding and removing files from the queue. Margins, page lengths and number of copies could also be set, as well as a parameter to adjust between favoring printing speed versus computer responsiveness.

Retrospect

Users of the initial release of the print command commented on the slow print speed and high resource usage, as well as the lack of support for the newly introduced subdirectories. The command was among the first RAM-resident programs and was the first to achieve widespread use, with many users disassembling the binary in order to determine how RAM-resident programs should be written.

References

PRINT (command) Wikipedia