How to create a Batch for converting multiple files from a folder to another

Hi, this is my first time that i ask something.

I have to create a batch that convert a lot of sxd files from a folder in png to put in another folder.

If i try this: “C:\Program Files (x86)\LibreOffice 5\program\soffice.exe” --headless --convert-to png --outdir “output folder” “input folder\filename.sxd” it works, but i have to convert many of these.

How can i do? I try so many solution, but no one is working

P.S. i’m using windows 7 nad LO 5.2.5

Windows shell/console does not expand wildcards (unlike *nix), and LO itself does not process them, too.
Put something like this to a batch file:

for %%f in ("input folder\*.sxd") do "C:\Program Files (x86)\LibreOffice 5\program\soffice.exe" --headless --convert-to png --outdir "output folder" "%%f"

Note: if using command like interactively, %%f should be replaced with %f

you’re a GOD thank you!!!

Have you tried a wildcard? “input folder*.sxd”

yes, but it’s not working