I am trying to set up an automatic printing solution on a Windows 2012 R2 Server.
So far I have written a .bat file that loops through and prints all pdf files that are in a folder. The main command looks something like this :
lpr -S 100.100.100.100 -P printQ %%F
(Where %%F
is the file name)
Looking at Microsoft's documentation on this page, there doesn't seem to be anyway to specify the printer tray.
I could specify the printer tray through the control panel, but the batch script needs to dynamically assign different paper trays for different files.
I've come across some commercial command line printing solutions that use lpr and that are able to specify paper tray. Would I be correct to assume that it is therefore possible to dynamically specify paper tray using lpr?