This code is not finding the path specified, even when I double-quote the whole path. Is there some other escaping that DOS needs specifically for loops?
@ifexists:/pdftoolkit
FOR %%F IN (*.pdf) DO /pdftoolkit\bin\pdftk.exe "%%~nF.pdf" cat 2-end output "%%~nF_.pdf"
@ifexists:else
FOR %%F IN (*.pdf) DO /pdftoolkit_c\bin\pdftk.exe "%%~nF.pdf" cat 2-end output "%%~nF_.pdf"
@leavedoswindowopen
Whereas the aliases below are resolved just fine...
@runmode hide
@ifexists:/pdftoolkit_c
/pdftoolkit_c\bin\pdftk.exe {allfile$} cat 1-endright output {file|noext}_(+90°).pdf
@ifexists:else
/pdftoolkit\bin\pdftk.exe {allfile$} cat 1-endright output {file|noext}_(+90°).pdf