The print command sends text files to the printer.

To learn more about how to use this command, see the example at the end of the article.

Syntax print command

 Print [/ d:] [:] [] [.] 

The command parameter print

Parameters

Describe

/ d:

Specify the printer you want to use.To print to a locally connected printer, specify the port on your computer (printer location is connected).

- Valid values ​​for parallel ports are LPT1, LPT2 and LPT3.

- Valid values ​​for serial ports are COM1, COM2, COM3 and COM4.

You can also specify a printer network by using its queue name (Server name * Printer name *).If you do not specify a printer, the print job will be sent to LPT1 by default.

:

Specify the logical drive or physical drive where the file you want to print is located (where the print file is stored).This parameter is not required if the file you want to print is already on the current drive.

 

Specify the location of the file you want to print.This parameter is not required if the file you want to print is in the current directory.

[.]

Reference is required.Specify the file you want to print.You can attach multiple files in one print job.

/?

Show help at thecommand prompt.

Command statement print

A file can be printed in the background if you send it to a printer connected to a serial or parallel port on the local computer.

You can perform many configuration tasks from thecommand promptusing the Mode command.

Refer to the Mode command for more information on:

  1. Configure the printer connected to the parallel port.
  2. Configure the printer connected to the serial port.
  3. Displays the status of the printer.
  4. Set up a printer to convert code pages.

Example print command

To send the Report.txt file in the current directory to the printer connected to LPT2 on the local computer, enter:

 print / d: lpt2 report.txt 

To send the Report.txt file in folder c: Accounting to the queue in Printer1 on the CopyRoom server, type:

 print / d: copyroomprinter1 c: accountingreport.txt 

See more:

 

  1. The net print command in Windows
  2. Netcfg command in Windows
  3. Nbtstat command in Windows
  4. Bitsadmin create command in Windows

 

3.3 ★ | 3 Vote | 👨 563 Views

Above is an article about: "The print command in Windows". Hope this article is useful to you. Don't forget to rate the article, like and share this article with your friends and relatives. Good luck!

« PREV POST
NEXT POST »