Hi,
I edited my batch down to it's simplest, but you could add rem(remark) cls(clearscreen) echo on, echo off and the @ sign to dress it up. I cycle 10 call forwards in a single batch. I also have a batch which then cancels cfwd with the appropriate feature access code. Batch files are then run using windows scheduler. Hope this helps.
mode com1: baud=9600 parity=e data=8 stop=1 dtr=off rts=off
atdt**1583971105>com1
sleep 6
ath>com1
sleep 4
atdt**1588001105>com1
sleep 6
ath>com1
Here is the detailed explanation.
Use google and locate sleep.exe(a 124kb file). I put it in the root directory. It is a tiny program which causes a batch file to pause for a timed period. Needed to pause the batch while the modem dials out because there is no relevant command in the DOS set.
I use the mode command to set my com1 port where the modem is attached to.
mode com1: baud=9600 parity=e data=8 stop=1 dtr=off rts=off
atdt**1583971105>com1 broken down is:
atdt - is the modem command for dial tone
**1583971105 - **15(my feature access code for remote call forward) + from ext 8397 to ext 1105
>com1 - redirect this command to the modem com1 port
sleep 6 - pause the batch command 6 seconds while the above dials out
ath>com1 - modem command to hang-up (go on hook)redirected to com1 port
sleep 4 - pause batch command 4 seconds while the above dials.
(repeat next cycle which in this case is for 8800 to go to 1105)