Discussion Locked

PING to start dial on demand

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi Guys,

Quick Question.... Windows 2000 server running Routing and remote access services.

What I need is a programme that will ping an ip address to start the dial-on-demand, and initiate the connection to the internet. Then once the programme receives a positive reply from the ping.. to start an external programme.

Any ideas?

Thanks in Advance

Matt

1 reply

by techrepublic

Pretty simple batch script should do the job, something like:

ping www.yahoo.com (or a known static address)
run xxx.exe

copy it into your startup folder on the server, and off you go. As batch files run commands successively, it won't fire up the executable until it has completed the ping operation, which should only complete if the connection to the net is successful. Make sure you have "dial when no network connection present" ticked for the dial up connection.

I use a similar file to automate VPN log-ins for users who have trouble with Lotus Notes timeouts when connecting remotely.

Cheers

Prophead

This discussion is closed to new replies.