H
H
Hryhorii Shcherbak2019-06-10 10:57:05
cmd/bat
Hryhorii Shcherbak, 2019-06-10 10:57:05

How to print in a BAT file through the desired printer?

Hello! I hope someone will tell you ...
I have a task, files that fall into a certain folder must be immediately printed and deleted.
But the trouble is, they need to be printed with different parameters (black and white, color, two, one-sided printing). The files are pre-sorted (for example, only black and white documents fall into folder 1, and color documents fall into folder 2, etc.)
Here is the batch file that I have, and it seems to work

for %%i in (*.pdf) do (
"C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe" /t %%i%"
)
pause

And the print goes to the default printer.
I think the easiest way is to install the same printer several times and set the necessary settings in each copy of the printer.
So I don't know what command to use in the script to specify the name of the printer to print to. And is it possible?
Thank you!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question