我建議用Powershell來處理:
參考:
https://www.nextofwindows.com/printing-all-pdf-or-word-documents-in-a-folder-to-any-printers-at-once
和
https://gregcaporale.wordpress.com/2012/01/18/powershell-to-print-files-automatically/
Get-ChildItem "C:\path\to\reports\pdf\*.pdf" |
ForEach-Object {Start-Process –FilePath $_.FullName –Verb Print -PassThru | %{sleep 10;$_} | kill}
後面的kill是關閉已列印過的PDF.
1900個pdf很多, 要清點哪些印過哪些沒印過, 把印過的移到另一個目錄, 可用以下的方式:
參考:
https://community.spiceworks.com/topic/1394495-print-multiple-pdf-files-and-then-move-once-printed-powershell
dir "C:\path\to\reports\pdf\*.pdf" |
ForEach-Object {
$moved = $False
Start-Process –FilePath $_.FullName –Verb Print -PassThru | %{sleep 10;$_} | kill
Do {
Try {
$_ |
Move-Item -Destination 'c:\another\folder' -ErrorAction Stop
$moved = $True
}
Catch {
$moved = $False
Start-Sleep 1
}
} While (!$moved)
}