Hi,

I am using a set of tools called FWTools which runs commands in the shell window. One command that I am using edits tif files by adding an overview to the file. The syntax is:

gdaladdo -r average "D:\Map Files\Tiffs\ST00.TIF" 2 4 8 16 32

What I need to do is run this command on 800 files in the directory D:\Map Files\Tiffs - is this possible?

I was thinking something like:

for %x in (*.tif) do gdaladdo -r average %x 2 4 8 16 32 but am not getting very far.

Any help or advice is welcome.

Regards

JD

Just take the echo out of the command:

sk@svn:/tmp/tif$ touch 1.tif 2.TiF 3.TIF
sk@svn:/tmp/tif$ find ./ -type f -iname \*.tif -exec echo gdaladdo -r average \"{}\" 2 4 8 16 32 \;
gdaladdo -r average "./2.TiF" 2 4 8 16 32
gdaladdo -r average "./1.tif" 2 4 8 16 32
gdaladdo -r average "./3.TIF" 2 4 8 16 32