Ask Your Question

How to convert a tipe of file and then split them in two different folders [closed]

asked 2017-02-09 15:19:28 +0100

Alex27 gravatar image

updated 2020-09-24 12:36:54 +0100

Alex Kemp gravatar image

I have to convert some .sxd file in png, and that's not a problem, but if a file end with L, i have to put that converted file in one folder, if a file end with I, in another.

for convert that i use: for %f in ("C:\Users\administrator\Desktop\Lay_up_contratti_camp*.sxd") do "C:\Program Files (x86)\LibreOffice 5\program\soffice.exe" --headless --convert-to png --outdir "C:\Users\administrator\Desktop\folder" "%f"

but then how can i separate them? With an if? if yes how can i do it?

P.S. i' have win 7

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-09-24 12:37:16.553053

1 Answer

Sort by » oldest newest most voted

answered 2017-02-09 15:25:50 +0100

updated 2017-02-09 15:36:15 +0100

you may use a following move:

move "C:\Users\administrator\Desktop\folder\*L.png" otherdir
edit flag offensive delete link more


more specific? with a for?

Alex27 gravatar imageAlex27 ( 2017-02-09 15:32:43 +0100 )edit

Question Tools

1 follower


Asked: 2017-02-09 15:19:28 +0100

Seen: 63 times

Last updated: Feb 09 '17