I have a command line application called "terminal.exe" which provides a simple way to communicate with a modem port attached to the PC.
To access the first device I would simply enter "1" and then I can send AT commands directly to the modem port.
Now, how would I write a batch file to launch "terminal.exe", then enter "1" into the terminal application and then send an AT command such as "at+cfun=1"?
I have attempted to do the following which seems to throw terminal.exe into an infinite loop where it keeps reloading the startup list of modems until I have to terminate the process with "ctr+c":
(echo 1 & echo at+cfun=1) | terminal
Thank you in advance!