Execute a Command to Dial a Modem

From WebWatchBotWiki
Jump to: navigation, search

This step-by-step article describes how to configure a dial-up (modem) connection to the Internet in Windows XP/2000/2003, then invoke that dial-up connection through WebWatchBot when an alarm is triggered.

WebWatchBot can execute an external command, such as calling RasDial, which dials a phone number via modem.

Create a New Connection for the Modem

  1. Open the "Network Connections" control panel applet: Start Menu -> Control Panel -> Network Connections. #Once the window opens, select "Create a New Connection":
  2. The "New Connection Wizard" will open:
  3. Click the "Next" button to begin. Select "Connect to the Internet", then click "Next"
  4. Select "Set up my connection manually", then click "Next"
  5. Select "Connect using a dial-up modem", then click "Next"
  6. Select the device (modem) you wish to use, then click "Next"
  7. Enter a connection name. This will be used when calling Rasdial from WebWatchBot. The name is not important, but should be remembered for steps below. After the name is entered, click "Next"
  8. Enter the phone number to dial, then click "Next"
  9. The "Internet Account Information" dialog will appear. Since we are only using the modem to dial a number, the fields may be left blank. Uncheck the option "Use this account name and password when anyone connects to the Internet from this computer" and "Make this the default Internet connection". Click "Next" to continue.
  10. Setup is now complete. Click "Finish" to close the "New Connection Wizard". The connection dialog will appear. The connection may be tested at this point, or closed by clicking "Cancel".

Configure WebWatchBot to use the new Dial-Up Connection

  1. In WebWatchBot Manager, open the properties of a Watch Item and select the "Alarm" tab
  2. In the "Trigger" section, click on the "Actions" button.
  3. The "Set Alarm Actions" dialog will appear. Select the "Commands" tab
  4. Enter the fully qualified pathname to rasdial and the name of the dial-up connection created as a paramter, e.g. C:\WINDOWS\system32\rasdial WebWatchBot. Check the checkbox for "Active".
  5. Click OK, until the Watch Item Properties window is closed.