How to print any document by cmd?

Asked

Viewed 4,986 times

1

Is there any way to print a document (in .docx or .pdf format preferably) using a Windows cmd command line? I tried to use print but it results in an error that says "Cannot boot device USB002(printer)"

1 answer

1

You can use the command PRINT specifying which printer to send the file to.

PRINT filename.txt /D:<printer_name>

Or you can use Adobe to do this:

AcroRd32.exe /t <file.pdf> <printer_name> <printer_driver> <printer_port>

Thus remaining:

"C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /t "D:\File.pdf" "Brother MFC-7820N USB Printer" "Brother MFC-7820N USB Printer" "IP_192.168.10.110"

Details: details

  • The second command printed right!! But the first results in: Não é possível inicializar o dispositivo HP DeskJet 2130 series. The printer is on and running normally

  • I removed the "HP" from the name and the command results in: D:\test.docx está sendo impresso but nothing happens!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.