Print (command) 

In computing, print is a command in the command line interpreters (shells) of DOS, OS/2 and Microsoft Windows. It is used to add a file to the print queue. It is equivalent to the Unix command lpr. The command was introduced in MS-DOS version 2. Before that there was no built-in support for background printing files. The user would usually use the copy command to copy files to LPT1.

Contents

Syntax

Microsoft Windows

Syntax to print a file:

print [/D:device] [[drive:][path]filename[...]]

Arguments:

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:

Flags:

DOS

Arguments:

Flags:

Example

print C:\documents\letter.txt

See also

References

 This software-related article is a stub. You can help Wikipedia by expanding it.