Print (command)

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.

yntax

Microsoft Windows

Syntax to print a file:print [/D:device] [drive:] [path] filename [...]

Arguments:
*/D:Device This command-line argument specifies the print device.
*drive:pathfilename 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:pathfilename 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 is LPT1.
* /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.

Example

print C:documentsletter.txt

ee also

*List of DOS commands

References

* [http://technet.microsoft.com/en-us/library/bb490970.aspx Microsoft TechNet Print article]


Wikimedia Foundation. 2010.

Игры ⚽ Поможем сделать НИР

Look at other dictionaries:

  • Print — may refer to:*Printing, mostly using a printing press ** Printing press, printing with moveable metal type, see also Letterpress printing **Publishing, the distribution of printed works or other information **Print run, one batch of printing,… …   Wikipedia

  • 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. Jobs can also have options associated… …   Wikipedia

  • Print screen — (often abbreviated Prt Scr, Print Scrn, Prt Scn, Prt Sc or Prnt Scrn) is a key present on most keyboards, typically situated in the same section as the break key and scroll lock key. Print screen is shared with system request. Under earlier… …   Wikipedia

  • COMMAND.COM — Developer(s) Seattle Computer Products, Microsoft Corporation, IBM, Novell and several others. Operating system DR DOS, FreeDOS, MS DOS, Novell DOS, OpenDOS, PC DOS, PTS DOS, ROM DOS, 86 DOS, Microsoft Windows (Windows 95 Wi …   Wikipedia

  • Command & Conquer: Tiberium Wars (novel) — Command Conquer: Tiberium Wars   First edition co …   Wikipedia

  • Command pattern — In object oriented programming, the command pattern is a design pattern in which an object is used to represent and encapsulate all the information needed to call a method at a later time. This information includes the method name, the object… …   Wikipedia

  • Command Prompt — For other uses, see Command prompt (disambiguation). CMD redirects here. For other uses, see CMD (disambiguation). Command Prompt A component of Microsoft Windows …   Wikipedia

  • Command-line interface — Screenshot of a sample Bash session. GNOME Terminal 3, Fedora 15 …   Wikipedia

  • Command Decision (film) — For the Elizabeth Moon novel, Command Decision, refer to Vatta s War. Command Decision DVD cover Directed by Sam Wood …   Wikipedia

  • Command key — The Command key The Command key, also historically known as the Apple key, open Apple key or meta key is a modifier key present on Apple Keyboards. The Command key s purpose is to allow the user to enter keyboard shortcut commands to GUI… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”