2 views +0 -0

Print from cmd using Sumatra

$pdfs = Get-ChildItem "C:\PrintJobs\*.pdf"
foreach ($pdf in $pdfs) {
    & "C:\Users\User\AppData\Local\SumatraPDF\SumatraPDF.exe" -print-to "Lexmark Printer" -silent $pdf.FullName
    Start-Sleep -Milliseconds 500
}