So all .img files in that directory are taken?! The one who does that is mkgmap … i think, because thats the one you invoke.

But why there? What in the batfile causes that? Or is it implicit in mkgmap or what else? Is your commandprompt
running from C:?