Have you tried tried to use:
ECHO >COM3 ATDT 5,,9
This should open the line then dial 5 <pause> 9.
Also, you could create a batch file:
Filename: Door.bat
-------------------------
ECHO >COM3 ATZ
REM MODEM INIT
ECHO >COM3 ATDT 5,,9
REM OPEN PORT, SEND DIAL COMMAND 5 <PAUSE> 9
------------------
-SF
P.S. If the ATDT does work via echo, then you could put this bat file somewhere, and create an icon on your desktop that could simply be double-clicked to dial the 5 9.
PPS. You may have to add a manual CR to the end of the echo files.
Before:
ECHO >COM3 ATZ
ECHO >COM3 ATDT 5,,9
After:
ECHO >COM3 ATZ^M
ECHO >COM3 ATDT 5,,9^M
Sending a command to a modem may leave it in the buffer if the command isn't 'ended'. '^M' is the equivalent of hitting return after a command.
PPPS Sometimes you may need to put quotes around your command.
Such as:
ECHO >COM3 "ATDT 5,,9^M"
Now, if your modem is set to tone, you're ok. If you modem is set to pulse, you have to either RESET the modem with AT&F after the ATZ, or create an INIT string"
DOOR.BAT
--------------
ECHO >COM3 ATZ^M
ECHO >COM3 AT&F^M
ECHO >COM3 ATDT 5,,9^M
Lemme Know..
Last edited by saltfish; 02-02-2004 at 01:21 PM..
|