DOS Phone Utility (PC Magazine Vol 4 No 13 June 25, 1985 User-to-User) The DIAL.BAT batch file is a simple telephone dialer -- with its own built-in directory -- that uses features of the Hayes Smartmodem and the output redirection capabilities of DOS. DIAL.BAT will automatically dial the phone (with a 1200 baud modem), disconnect the modem, and allow you to continue the call. In addition, it lets you set up an extensive dialing directory by expanding the conditional tests for names within the program. You'll need to have the DOS program MODE.COM on the same disk as the dialer program or in a directory specified by PATH if you use a hard disk. To use the program, just type: DIAL number (then hit Enter) where "number" is either the telephone number you wish to dial or the name of someone in the program's directory. Lift the handset, listen to the speaker in the modem to determine when the dialing is done, and then press any key to disconnect the modem and reconnect the handset. Complete your call as usual. MODE ensures that the right COM port is set to the proper baud rate. If you're using COM2 or a different buad rate, change the values in the program accordingly. MODE usually prints a message to the screen; DIAL.BAT gets rid of this by redirecting it to the NUL device. The "echo ." line helps format the display; if you prefer a blank line, substitute spaces for the period. Just be sure that there are at least two spaces after the ECHO command. Other modems that emulate Hayes commands may work with DIAL.BAT, and it could also be modified to transmit other auto-dialer commands for use with non-Hayes-compatible modems. When using other modems, be sure the RS232C lines CTS (clear to send) and DSR (data set ready) from the modem are on, or else a DOS error will result. DIAL.BAT cannot be used with a RIXON R212A Intelligent Modem because of this. Although RIXON modem options can be set for DSR and CTS on, the lines are apparently disabled until the "wake-up" signal to the modem is sent. DOS, however, aborts the transmission to the modem before it sends any characters at all since the modem does not appear to be ready. - - - - - DIAL.BAT: echo off mode com1:1200>nul if %1 == TOM goto tom if %1 == tom goto tom if %1 == DICK goto dick if %1 == dick goto dick if %1 == HARRY goto harry if %1 == harry goto harry echo ATDT%1; >com1: goto exit :tom echo ATDT111-1111; >com1: goto exit :dick echo ATDT222-2222; >com1: goto exit :harry echo ATDT9-333-3333; >com1: :exit echo . echo Pick up the handset first then, after the dialing is com- echo plete, press any key to disconnect the modem. echo . pause echo ATH > com1: