View Single Post
Old 02-02-2004, 01:05 PM   #8 (permalink)
saltfish
!?!No hay pantalones!?!
 
saltfish's Avatar
 
Location: Indian-no-place
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..
saltfish is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62