Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CTRL-Z in dos script

Status
Not open for further replies.

bertvh

Technical User
Jan 26, 2011
1
BE
see also thread204-217738 but the solution is not mentionned :(
Hi I want to automate sms's being send out via the serial port com 1 to a GSM modem

script looks like this:

mode com1:96,n,8,1
ping 123.45.67.89 -n 1 -w 600 > nul => just wait few seconds
echo on
ping 123.45.67.89 -n 1 -w 600 > nul
echo ATZ0 > com1
ping 123.45.67.89 -n 1 -w 600 > nul
echo AT+CPIN=XXXX
ping 123.45.67.89 -n 1 -w 600 > nul
echo ATZ;E1 > com1
ping 123.45.67.89 -n 1 -w 600 > nul
echo AT+CMGF=1 > com1
ping 123.45.67.89 -n 1 -w 600 > nul
echo AT+CSMP=17,167,0,16 > com1
ping 123.45.67.89 -n 1 -w 600 > nul
echo AT+CSCA="+32475161616" > com1
ping 123.45.67.89 -n 1 -w 600 > nul
echo AT+CMGS="+32497XXXXXX" > com1
ping 123.45.67.89 -n 1 -w 600 > nul
echo Incoming alarm, please check mail for details? > com1
echo ? > com1

after the text message on the last line I need to put a CTRL-Z to send the message and for some reason it's not working,
I used the editor in windows ( start, run, edit)and I added this special character ? (=CTRL-Z)but it didn't work.
I use a serial sniffer and i can see everything is being send to the modem except for the ctrl-z
Does anyone know how to solve this?
Thx in advance ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top