run a program with FOR command in batch, for some files
Posted: 25 Dec 2012 09:59
Hi everyone,
i want run a program over some files with specific extension,
for example run a command-line program like pdftk-1.44-win over
all .pdf files in a folder for delete page 1 of all .pdf files.
for example, for rotate the first page in.pdf to 90 degrees clockwise and save output to out.pdf,
i should run this command:
pdftk in.pdf cat 1E 2-end output out.pdf
question is: how i can rotate first page of all .pdf files in a folder and save output with same
name in a different folder with this program pdftk?
if i know how write this program with FOR command, i can run any specific program
over any files with respect to that program.
thanks a lot in advance.
i want run a program over some files with specific extension,
for example run a command-line program like pdftk-1.44-win over
all .pdf files in a folder for delete page 1 of all .pdf files.
for example, for rotate the first page in.pdf to 90 degrees clockwise and save output to out.pdf,
i should run this command:
pdftk in.pdf cat 1E 2-end output out.pdf
question is: how i can rotate first page of all .pdf files in a folder and save output with same
name in a different folder with this program pdftk?
if i know how write this program with FOR command, i can run any specific program
over any files with respect to that program.
thanks a lot in advance.