here is a short script that i use in procomm, this ver assumes that you are logged on, a couple of lines could be added to run unattented, i use the scheduler packaged with procmomm to auto start procomm, dial my switch, login, set the time to match the pc, logo and hang up... this copy will simple set the time and date to match the pc you start it on
proc main
integer iDay, iMonth, iYear, iMin, iHour, iSec
string sSend
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sSend "STAD %02d %02d %d %02d %02d %02d" iDay iMonth iYear iHour iMin iSec
set txpace 30
transmit "****^M"
waitfor ">"
transmit "ld 2^M"
waitfor "."
transmit "TTAD^M"
waitfor "."
transmit sSend
transmit "^M"
waitfor "."
pause 2
transmit "TTAD^M"
waitfor "."
pause 2
transmit "****^M"
set txpace 0
Endproc
john poole
bellsouth business
columbia,sc