Here are some samples:
gsbatchprint -P ColorPrinter -F *.pdf -F files\*.pdf -C 0 -N A4 -I Schacht1 -I Tray1 -n -M OkPath -E ErrPath -l -T 10
Prints all pdf files from the current directory and the sub path “files” in black/white (-C 0) to the printer “ColorPrinter”. They are sorted by the file names (-n). The paper from an input tray, which contains “Schacht1” or “Tray1” in it’s name is used (First a test for an exact match is performed. If it fails, all blanks are ignored and then a part string match is done).
Successfully printed files are moved to the child folder “OkPath”, faulty printed files to the folder “ErrPath”.
The programm will not end after the printing but retest the conditions after 10 seconds
gsbatchprint -P ColorPrinter -s
Creates a text file with all paper formats and input trays for the given printer. The result file file is opened automatically.