Tuesday, April 25, 2017

Štampanje pdf fajla iz komandne linije windows-a

Štampanje pdf fajla iz komandne linije windows-a:

 printer name, driver, and port - in that order. Your final command should resemble:
AcroRd32.exe /t <file.pdf> <printer_name> <printer_driver> <printer_port>
For example:

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



"C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe" /t "$pdf"
You can also run pdfprint.exe from a DOS window to print all PDF files in a folder by one command line, such as,
for %F in (D:\temp*.pdf) do pdfprint.exe "%F"

for /r D:\temp %F in (*.pdf) do pdfprint.exe "%F"