npocmaka/batch.scripts

Print several times

Lieven150 opened this issue · 4 comments

Thanks, works brilliantly! Is it possible to get some documents to print in twofold, threefold, ... ?

@Lieven150 - hello. I'm not sure what's the request here... What script have you used (printJS.bat?)? You want to print documents resized?Or several times?

best regards.

Hi, yes, print some documents several times. E.g. 5 docs in the folder: print 1-3 one time, and print 4 & 5 three times.

you can create simple bat file (or if you prefer powershell...) that can do this . Here is an example repeatPrints.bat (must be in the same folder as printJS.bat):

@echo off
set "file_to_print=%~f1"
set /a "copies=%~2"

for /l %%# in (1;1;%copies%) do (
  call  printJS.bat "%file_to_print%"
)

and you can use it like repeatPrints.bat "c:\docs\myFile.pdf" 5 which will print it 5 times.

thanks, super!