Reading data from COM port using batch file

I want to retrieve data from COM port and then save it into a text file. Is there any command resist in the MS DOS through which I can read the data from COM port by using the batch file? If anyone knows the solution kindly quote it stepwise so that it would be easier for me to understand.
