I haven't actually tried this, but you should be able to pipe input from a serial port directly to a file by typing something like
COPY COM1 filename.txt
at the "DOS" command line. A Ctrl-Z (hex character 0x1A, ASCII 26) coming in will close the file.
See http://chrio.org/serial/ for ideas.