Skip to content

batch file not working #168

@StephanBusch

Description

@StephanBusch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions