Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

batch file not working #168

Open
StephanBusch opened this issue Aug 24, 2023 · 0 comments
Open

batch file not working #168

StephanBusch opened this issue Aug 24, 2023 · 0 comments

Comments

@StephanBusch
Copy link

Hello guys,

I am using the following commandline in windows 11:

pdfsizeopt --v=20 --use-pngout=No --use-image-optimizer="pingo -s4 %(targetfnq)s" --use-image-optimizer=ECT,zopflipng --do-optimize-objs=yes --do-remove-generational-objs=yes abc.pdf

it works, but not in a windows batch file. What am I doing wrong? My batchfile looks like this:

@echo off

FOR %%i IN (%*) DO (

pdfsizeopt --v=20 --use-pngout=No --use-image-optimizer="pingo -s4 %(targetfnq)s" --use-image-optimizer=ECT,zopflipng --do-optimize-objs=yes --do-remove-generational-objs=yes "%%i"

)
pause

the error shown is that the input file is missing when I drag and drop a pdf on that batchfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant