print (command)
From Wikipedia, the free encyclopedia
| This article needs additional citations for verification. Please help improve this article by adding reliable references. Unsourced material may be challenged and removed. (April 2008) |
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 |
[edit] Syntax
[edit] Microsoft Windows
Syntax to print a file:
print [/D:device] [[drive:][path]filename[...]]
Arguments:
/D:DeviceThis command-line argument specifies the print device.drive:\path\filenameSpecifies the location of the file to be printed.
[edit] 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:deviceThis argument specifies the print device, for example:/D:LPT1.drive:\path\filenameSpecifies the location of the file to be printed.
Flags:
/BSpecifies the file is a binary file./CCancels the file that is currently printing./TCancels all files from the print queue, including the file that is currently printing.
[edit] DOS
Arguments:
/D deviceSpecifies the name of the print devices. Default value isLPT1./P filenameAdd files in the print queue./C filenameRemoves a file from the print queue.
Flags:
/TRemoves all files from the print queue.
[edit] Example
print C:\documents\letter.txt
[edit] See also
[edit] References
|
|||||||||||||||||||||||||||||

