should help you out Finally got the for loop working... for %%f in (c:\input\*.pdf) do ( if not exist C:%%~Nf md C:%%~Nf C:\sejda-console-1.0.0.M9\bin\sejda-console.bat splitbybookmarks -l 2 -f %%f -o C:%%~Nf\ -p [BOOKMARK_NAME] )
sejda-console creates the --output file as hidden attribute
should help you out I try to write a wrapper script for songbook generation using lilypond, latex and sejda-console (for the pdf part). Everything works so far, but I have a problem with sejda that is giving me nuts. Here is the relevant part of my code: , I'd suggest that sejda.bat is changing the current directory. Try
call sejda.bat ...
Sejda-console split by text : set the output file name to the changed value?