Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




 

Microsoft DOS print command

Quick links

About print
Availability
Syntax
Examples
Additional information

About print

Print was first introduced in MS-DOS 2.0 as PRINT.COM and later was changed to PRINT.EXE in MS-DOS 5.0 and above. This command allowed users to print a text file to a line printer, in the background.

Users using Windows 95 or above see document CH000199 for how the dir command can be used to print directories / files.

Availability

The print.exe and print.com command is an external command that is available in the below Microsoft operating systems.

MS-DOS 2.0 and above
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP
Windows Vista
Windows 7

Index

Category:
MS-DOS

Companies:
Microsoft

Related Pages:
CH000199
Printer

Resolved

Were you able to locate the answer to your questions?

Syntax

print/d:device /b:size /u:ticks1 /m:ticks2
/s:ticks3 /q:size /t
drive:\path\ filename /c /p

Options:

/d:device Name of printer device
Printer Ports: LPT1, LPT2 orLPT3
Serial Ports: Com1, Com2, Com3 or Com4
/b:sizeSets size (in bytes) of internal buffer. Default=512 with range of 512 to 16384.
/u:ticks1Maximum number of clock ticks PRINT is to wait for a printer to become available. Default=1 with a range of 1 to 255.
/m:ticks2Maximum number of clock ticks PRINT can take to print a character or printer. Default=2 with a range of 1 to 255.
/s:ticks3Maximum number of clock ticks allocated for background printing. Default=8 with range of 1 to 255.
/q:qsize Maximum number of files allowed in print queue. Default=10 with range of 1 to 255.
/tRemoves files from the print queue.
drive:\path\ filename Location and filename of file to be printed.
/cRemoves files from the print queue.
/pAdds files to the print queue.

Examples

print c:\file.txt /c /d:lpt1

Prints the file file.txt to the parallel port lpt1.

Additional information

The print command is only able to print ASCII text.

The /d, /b, /u, /m, /s and /q switches can only be used once. If a different value needs to be used the computer must be restarted.

If you're looking for information about how to print the output of commands to a file see document CH000199.

 

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope