Hi,
I try to set up a batch file which prints automatically PDFs that are stored in a special folder. With this line it works to print on the default printer:
@for %%p in ("W:\print\*.pdf") do "C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit Reader.exe" /p "%%p"
But if I want to take another printer instead of the default printer with option /t it won't print. The code for that is:
@for %%p in ("W:\iprint\*.pdf") do "C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit Reader.exe" /t "%%p" \\server\printer2
The share works and the printer exists. There is no error when running the script.
I use Win 7 64bit SP1.
Can anyone assist/help?
Thank you!
I try to set up a batch file which prints automatically PDFs that are stored in a special folder. With this line it works to print on the default printer:
@for %%p in ("W:\print\*.pdf") do "C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit Reader.exe" /p "%%p"
But if I want to take another printer instead of the default printer with option /t it won't print. The code for that is:
@for %%p in ("W:\iprint\*.pdf") do "C:\Program Files (x86)\Foxit Software\Foxit Reader\Foxit Reader.exe" /t "%%p" \\server\printer2
The share works and the printer exists. There is no error when running the script.
I use Win 7 64bit SP1.
Can anyone assist/help?
Thank you!
Comment