How to print any document by cmd?

1

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

    
asked by anonymous 08.06.2018 / 00:33

1 answer

1

You can use the PRINT command 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>

Looking like this:

"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

    
08.06.2018 / 00:48