Unixoid source is available. However, it uses stdin/stdio and redirection. This, of course, won't work on Windows because of a now ancient decision by Dr. Gary Kildall to have two types (binary and text) of files in his then new hot operating system that didn't keep track of a last byte of the last sector. ;-)
So, for Windows use, it needs argument checking, a couple of fopens/fcloses and modification of the input/output code to use them.
Udo, might it not be a bad idea to include at least the source (binaries including for Windows would be nice, also) for those who need to convert an *.imd disk file for use on z80pack? You could do in your sleep in less than 10 minutes. If you need a Windows binary (or even my modified source code), just say the word and I'll send it. Along with the Windows port of cpmtools, this combination should do what is needed.
Windows cpmtools is here:
http://www.cpm8680.com/cpmtools/
I sent a copy of my modified source Al Kossow what is probably a year and a half ago now, but if he's posted it, I don't know where it is. For that matter, I don't even know if he has a process/policy on accepting modifications to old software. Per our discussion on the zxcc-windows post, changing old software is tough to sell. However, it's source and is still very useful.
The output is known to be md5 hash identical to Dsve Dunfield's conversion utility. I was working with Bill Buckels on the Windows port of cpmtools and I needed to convert a bunch of imd files to raw sectors to test, work out diskdefs and the like. No DOSBox, no nothing. Native. As you know, I don't like to drop into emulators preferring to run programs directly from the command line. ;-)
Anyway,
There are (at least) two copies on bitsavers.
One is here:
http://bitsavers.trailing-edge.com/bits/Convergent/ngen/imd2raw/imd2raw.c
The other is here:
http://bitsavers.trailing-edge.com/bits/Tektronix/8562/tools/imd2raw.c
The only difference between the two is the size of an internal buffer, I used the big one.
If you don't think it's a good idea, so be it.
If you need anything from me, please let me know.
Tom