Beverly Howard said:
don't think you are going to have much success with this from the
command prompt since there are "text buffering" issues...
i.e. the modem is going to send it's response when it wants to, so there
has to be some kind of bucket in place to catch the response, otherwise
it's like water pouring on the ground... it happens, but it's not
retained, and, afaik, without a program running in place to capture
process the data from the comm port, dos alone can't do it.
Exactly right. Serial data comes in one byte
at a time, you have to read the bytes individually and
then make a string outta them, all the while looking
for a <CR> char. so you know you've reached the
end of the line.
I don't think the command line will ever do what
to do. You need to write a program. Needs to be
able to program the COM: port for the proper baud
rate, bits, parity, etc. before you can even talk to
the modem.
I used Visual Basic to do this several years ago to
dial a pager number, wait for an answer, send a numeric
page, then wait for and interpret the response from the modem.
Beverly Howard [MS MVP-Mobile Devices]