Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to handle multiple modems

Status
Not open for further replies.

tpq

Programmer
Apr 2, 2003
12
US
I have multiple modems in my PC and want to be able to
select the unused modem to dial in my script. Can this done with ASPECT scripting?

Thanks
 
When my script started, I want to be able to figure out which of the modem that is not currently in used and use it to dial out. This way I don't have to configure an entry in the connection directory with certain modem connection.

Thanks
 
I have 10 scripts that will be using 10 different dial directory. In my computer I have 4 modems. The scritps will start automaticaly by a batch job, and since I have 4 modems there will 4 procomm session running 4 scripts. Without be able to select what modem is not being used I can't remove the dependency between the a dial directory and a modem. For example:

Here is my dial directory

Name Port connection script Name
===== =============== ===========
DialNumber1 Agere Modem client1.wax
DialNumber2 Agere Modem #2 client2.wax
DialNumber3 Agere Modem #3 client3.wax
DialNumber4 Agere Modem #4 client4.wax
DialNumber5 Agere Modem client5.wax
DialNumber6 Agere Modem #2 client6.wax

......

As you can see client5.wax can't run until client1.wax is done since they are use the same port connection. If there is a way when client5.wax start it will search for to see if any modem not currently in used and use that instead of
depend on the Dial directory connection

Thanks
 
Have you tried setting all of your connections to use [ Current Connection ] instead of specifying a modem in the Connection Directory? If done this way, the only thing you would need to do is run a small script on startup to assign each instance of Procomm a unique modem using the set modem connection command. The easiest way to do this would be to write four different scripts (one for each modem) to set Procomm to use that modem. You would then have your batch file run the four different Procomm sessions, with each session first running the script that set its particular modem, then carrying on to the Connection Directory entries or scripts you want to run (I'm not familiar on your exact setup, so can't offer more specific advice than that).

aspect@aspectscripting.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top