Convert multipage tiff recursive.

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
Mlearning
Posts: 1
Joined: Wed Nov 17, 2010 9:36 am

Convert multipage tiff recursive.

Post by Mlearning »

Good Morning.
I know that this topic was spoken and I check the information but I cannot finnish my script.
I have a massive scanner and I scanning a lot of simple tiff page documents. They are saving in a folder. The structure is:
FOLDER\101110\001
FOLDER\101110\002
...
FOLDER\DATETODAY\001
FOLDER\DATETODAY\00N

How you can check I have a lot of tiff in each folder number (001,002...)
I want to create a multi page tiff old each folder where are tiff files.
I've create a script
FOR /r /d %%a IN (*) DO nconvert.exe -multi -out tiff -o %%a %%a\*.tif

But this script creates white documents in ech datefolder with 1kbsize because are not tiff in the folder and I don't know what I should write in the script to only create tiffmultipage where it find tiff.
In addition I would like that the script creates the multipage tiff in other folder

Could you please give some help?

Thanks in advance.
DryLand404
Posts: 1
Joined: Thu Jun 09, 2011 2:24 pm

Re: Convert multipage tiff recursive.

Post by DryLand404 »

Try
FOR /r /d %%a IN (*.tif) DO nconvert.exe -multi -out tiff -o %%a %%a\*.tif
Post Reply