+4  A: 

Try adding quotes around the directory.

jvenema
Thanks jvenema: It seems like "quote" actually does what I thought it should do, but unfortunately I was not delete all images using a wide-card. Eoin's version worked though.
Sung Meister
+8  A: 

Try

cd $(TargetDir)
del *.tif

As jvenema pointed out, your $(TargetDir) is expanding into a path containing spaces in the folder names which is breaking the delete command.

Eoin Campbell
@Eoin: It worked like a charm. thanks.
Sung Meister