forfiles /m *.pdf /c "cmd /c optimise_pdf.bat @file "
set FILE_NAME=%~1
echo %FILE_NAME%
echo optimised_%FILE_NAME%
"C:\Program Files\gs\gs9.05\bin\gswin64.exe" -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="optimised_%FILE_NAME%" "%FILE_NAME%"
batch_opt_pdf.txt | 54B | |
optimise_pdf.txt | 250B |
It looks like you're new here. If you want to get involved, click one of these buttons!