Draft for Information Only
ContentMS DOS Command: PRINT.EXE
MS DOS Command: PRINT.EXEReference from Microsoft MS-DOS cmd help DescriptionPrints a text file while you are using other MS-DOS commands. This command can print in the background if you have an output device connected to one of your system's serial or parallel ports. SyntaxPRINT [/D:device] [/B:size] [/U:ticks1] [/M:ticks2] [/S:ticks3] [/Q:qsize] [/T] [[drive:][path]filename[ ...]] [/C] [/P]
To install PRINT with the default parameters or to display the contents of the print queue on your screen without affecting the queue, use the following syntax: PRINT
Parameters
Switches
Related CommandsFor information about configuring a printer connected to a parallel port, see the MODE (configure printer) command. For information about displaying the status of a printer, see the MODE (display device status) command. For information about configuring a printer connected to a serial port, see the MODE (redirect printing) command. For information about preparing printers for character-set switching, see the MODE (set device code pages) command. RemarksLength of a PRINT queue entryEach print queue entry can contain a maximum of 64 characters. Each queue entry includes the drive letter, directory, and any subdirectories. Limitations on switchesYou can only use the /D, /B, /U, /M, /S, and /Q switches the first time you use the PRINT command after starting MS-DOS. To use one of these switches after using PRINT, you need to restart MS-DOS. Use an application's print command when possibleMany applications have their own print commands. You should use an application's print command to print files that you create with the application. ExamplesTo view the status of the print queue, type the following at the command prompt: MS-DOS displays the name of the file being printed (if any), the names of files in the queue, and an error message, if an error condition exists. The following command removes the PENCIL.TST file from the print queue: print a:pencil.tst /c The next command shows how to remove the file PENCIL.TST from the queue and add the file PEN.TST to the queue: print pencil.tst /c pen.tst /p The remaining examples use switches that work only with the first PRINT command you use after starting MS-DOS. The following command sets up the print queue for printing on LPT1: print /d:lpt1 To specify that the PRINT command is to wait 60 clock ticks for a printer to be available and that the MS-DOS scheduler is to allocate 25 clock ticks to the PRINT command for background printing rather than the default value of 8 clock ticks, type the following command: print /u:60 /s:25 The following example specifies that PRINT has 4 clock ticks available to print each character rather than the default value of 2 clock ticks: print /m:4 To change the default maximum number of files for the print queue, use the PRINT command with the /Q switch, as the following example shows: print /q:32 ©sideway ID: 110700238 Last Updated: 7/29/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019