Print (command)
Encyclopedia
In computing
,
in the command line interpreters (shells
) of DOS
, OS/2
and Microsoft Windows
. It is used to add a text file to the print queue
. Because of the text file limitation it is not equivalent to the
or the
(both available in the CUPS printing system).
The command was introduced in MS-DOS
version 2. Another option to print files is to use the
printer ports.
Arguments:
print [/D:device][/B] [drive:][path] filename[...]
Syntax to cancel a file that is printing or queued:
print [/D:device][/C or /T]
Arguments:
Flags:
Flags:
Computing
Computing is usually defined as the activity of using and improving computer hardware and software. It is the computer-specific part of information technology...
,
print
is a commandCommand (computing)
In computing, a command is a directive to a computer program acting as an interpreter of some kind, in order to perform a specific task. Most commonly a command is a directive to some kind of command line interface, such as a shell....
in the command line interpreters (shells
Shell (computing)
A shell is a piece of software that provides an interface for users of an operating system which provides access to the services of a kernel. However, the term is also applied very loosely to applications and may include any software that is "built around" a particular component, such as web...
) of DOS
DOS
DOS, short for "Disk Operating System", is an acronym for several closely related operating systems that dominated the IBM PC compatible market between 1981 and 1995, or until about 2000 if one includes the partially DOS-based Microsoft Windows versions 95, 98, and Millennium Edition.Related...
, OS/2
OS/2
OS/2 is a computer operating system, initially created by Microsoft and IBM, then later developed by IBM exclusively. The name stands for "Operating System/2," because it was introduced as part of the same generation change release as IBM's "Personal System/2 " line of second-generation personal...
and Microsoft Windows
Microsoft Windows
Microsoft Windows is a series of operating systems produced by Microsoft.Microsoft introduced an operating environment named Windows on November 20, 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces . Microsoft Windows came to dominate the world's personal...
. It is used to add a text file to the print queue
Print job
In computing, a print job is a file or set of files that has been submitted to be printed.Jobs are typically identified by a unique number, and are assigned to a particular destination, usually a printer...
. Because of the text file limitation it is not equivalent to the
lprLprThe lpr command is used on many Unix-like systems to assign jobs to printer queues. The name derives from "lineprinter", though it has become the commonly used command for any sort of printer...
command in the Berkeley printing systemBerkeley printing system
The Berkeley printing system is one of several standard architectures for printing on the Unix platform. It originated in 4.2BSD, and is used in BSD derivatives such as FreeBSD, NetBSD, OpenBSD, and DragonFly BSD...
or the
lpLp (Unix)The lp command is used on many Unix-like systems to assign jobs to printer queues. The name derives from "lineprinter", though it has become the commonly used command for any sort of printer...
command in the System V printing systemSystem V printing system
The UNIX System V printing system is one of several standard architectures for printing on the UNIX platform, and is typical of commercial System V-based operating systems such as Solaris and SCO OpenServer...
(both available in the CUPS printing system).
The command was introduced in MS-DOS
MS-DOS
MS-DOS is an operating system for x86-based personal computers. It was the most commonly used member of the DOS family of operating systems, and was the main operating system for IBM PC compatible personal computers during the 1980s to the mid 1990s, until it was gradually superseded by operating...
version 2. Another option to print files is to use the
copyCopy (command)In computing, copy is a command in RT-11, RSX-11, OpenVMS, DOS, OS/2 and Microsoft Windows operating systems. The command copies computer files from one directory to another. The destination defaults to the current working directory. If more than one source file is indicated, the destination must...
command to copy files to one of the LPTLPT
LPT is the original, and still common, name of the parallel port interface on IBM PC-compatible computers. It was designed to operate a text printer that used IBM's 8-bit extended ASCII character set. The name derives from the fact that "line printer" was a common generic term at the time for any...
printer ports.
Microsoft Windows
Syntax to print a file:Arguments:
/D:Device
This command-line argument specifies the print device.drive:\path\filename
Specifies the location of the file to be printed.
OS/2
Syntax to print a file:print [/D:device][/B] [drive:][path] filename[...]
Syntax to cancel a file that is printing or queued:
print [/D:device][/C or /T]
Arguments:
/D:device
This argument specifies the print device, for example:/D:LPT1
.drive:\path\filename
Specifies the location of the file to be printed.
Flags:
/B
Specifies the file is a binary file./C
Cancels the file that is currently printing./T
Cancels all files from the print queue, including the file that is currently printing.
DOS
Arguments:-
/D device
Specifies the name of the print devices. Default value isLPT1
. -
/P filename
Add files in the print queue. -
/C filename
Removes a file from the print queue.
Flags:
-
/T
Removes all files from the print queue.