The only thing I can think of is that when you run a DOS program, you can redirect its output with the > symbol. For example, if you want the output of the DIR command to go to a file instead of the screen you can say:
DIR > C:\whatever\mydir.dat

If you can do something like that when you execute the COM file, you'll have what you need in the file.

Other than that, I would turn this question over to one of the many capable gurus on this forum.

Good luck.