Struggling to NOT I did say keep it simple is best
I see no reason why page 1 should be processed by the second call but I don’t know how your calling try single & rather than && try capturing echo’s or screen output to check what Sumatra is getting so could have a sumatraTST.cmd full of echo %1 %2 %3 %4 %5 %6 %7and then test your calling against SumatraTST (where currently using SumatraPDF) to see what Sumatra is getting on each run
I just tried
SumatraTST -print-to “Kyocera ECOSYS M6526cdn KX” -print-settings “simplex,1,bin=Kassette 1” “SumatraPDF-settings.txt” && SumatraTST -print-to “Kyocera ECOSYS M6526cdn KX” -print-settings “simplex,2-99,bin=Kassette 2” “SumatraPDF-settings.txt”
and got back the expected pair of sequences but without a two tray system cant check if I would get similar results to you
1=-print-to 2="Kyocera ECOSYS M6526cdn KX" 3=-print-settings 4="simplex,1,bin=Kassette 1" 5="SumatraPDF-settings.txt" 6= 7= 8= 9=
1=-print-to 2="Kyocera ECOSYS M6526cdn KX" 3=-print-settings 4="simplex,2-99,bin=Kassette 2" 5="SumatraPDF-settings.txt" 6= 7= 8= 9=
It could well be that the second call is attempting to be respected and the nearest result is to send that first page to second device thus you would need to only send docs with more than one page in that second direction so need a means to detect number of pages (tricky)
OK I tried to simulate calling a file twice without enough pages and the second run prints last page so if the count is one then I guess page 1 is both first call and last on second call ! (not much help as I cant find a way with Sumatra to fault on the second page ) I tried view - page 2 but it will simply happily show page 1 without error !
I would be digging out some other tool to count pages then pass down one fork to 1 page printing and another fork for 2+ printing suitable tools may be mutools coherent pdf pdftk and filter with “find” num pages
so for example this should work with coherent community edition (other products are available)
cpdf -pages "%1">%temp%\pagecount.txt
set /P pagecount=<%temp%\pagecount.txt
SumatraPDF -print-to "Kyocera ECOSYS M6526cdn KX" -print-settings "simplex,1,bin=Kassette 1" "%1"
REM if the page count is 1 then do not run second pass for second bin
if "%pagecount%" = "1" goto done
SumatraPDF -print-to "Kyocera ECOSYS M6526cdn KX" -print-settings "simplex,2-99,bin=Kassette 2" "%1"