Sure ;-)
There are a couple of things you can do - one would be to
write the string to the modem's nonvolatile RAM. It's
easy to issue commands through either hyperterminal or
from a command prompt - if I'm just writing to modem
registers I prefer using a command prompt. The syntax is:
echo [modem command] > COMx
where x is the com port where the modem resides. Batch
files work just fine for stuff like this - and I'm not a
programmer so I really can't answer your question about
programming.
Let's assume your modem is on COM1 for a minute. To set
autoanswer to the fourth ring you'd issue this from a
command prompt -
echo ats0=4 > com1
but please note that while modem commands are not case-
sensitive they cannot be mixed-case. Either all upper-
or all lowercase, please.
The autoanswer we set above would remain in effect until
something like a terminal program or Windows Dial-Up
Networking issued a modem reset command. If you wanted
to write the command to the modem's NVRAM so it became
the default, you'd do it like this, hitting the enter key
after each line:
echo ats0=4 > com1
echo at&w > com1
The &w command instructs the modem to write its current
configuration to NVRAM and it becomes the default when an
the modem is powered up or issued a reset command (atz).
If you wanted to turn off autoanswer you'd do the
echo ats0=0 > com1
thing again, and if you wanted you could write that
string to modem memory.
So - issuing modem commands from a batch file is entirely
possible - as a matter of fact I use a technique similar
to that to keep unauthorized macnines from logging on to
our domain from a dialup connection - our login script
interrogates a dialup machine to insure it's supposed to
be on the network and if not, the login script issues
modem hangup commands to about eight COM ports just to
help us keep unaccredited machines off the network.
I know I've been a bit wordy but what you're asking is
completely doable.
Hope this helps -
-----Original Message-----
Great, thanks - I'll try that.
Now for the million dollar follow-up bonus question...
Is there a way to change this programmatically - a WinAPI
dll or even a .BAT file?