Help: How can I detect when my PC is connected to the Internet and run a programme

G

Guest

Hi all

I have a Visual Basic Script which uploads my dynamic IP address ( I
have dial up modem access) to my web site. Is there anyway that I can
automate the process such when I successfully connect to the Internet
the script is run. (Also it would be nice for a script also to be run
just prior to disconnection).

I have tried looking at the 'Scheduled Tasks' option but it doesn't
give any option for Internet connection.

Any help would be gratefully received.

Many thanks
 
S

Steve Parry [MVP]

In
Hi all

I have a Visual Basic Script which uploads my dynamic IP address ( I
have dial up modem access) to my web site. Is there anyway that I can
automate the process such when I successfully connect to the Internet
the script is run. (Also it would be nice for a script also to be run
just prior to disconnection).

I have tried looking at the 'Scheduled Tasks' option but it doesn't
give any option for Internet connection.

Any help would be gratefully received.

Many thanks

you could use the pre supplied applet from www.no-ip.com to provide the
same thing, then when you refer to yoursitename.no-ip.com it will get
resolved to your dynamic address.
 
P

Pegasus \(MVP\)

Hi all

I have a Visual Basic Script which uploads my dynamic IP address ( I
have dial up modem access) to my web site. Is there anyway that I can
automate the process such when I successfully connect to the Internet
the script is run. (Also it would be nice for a script also to be run
just prior to disconnection).

I have tried looking at the 'Scheduled Tasks' option but it doesn't
give any option for Internet connection.

Any help would be gratefully received.

Many thanks

You could run this batch file:

@echo off
ping www.google.com -n 1 | find /i "bytes=" && echo Connection established!

Incidentally, there are several services that will detect
your external IP address and send it to a domain name
server so that a name such as kirkzeus.homedns.org
always resolves to your current address. Both the
program and the name registration are free on these
sites:
www.no-ip.com
www.dyndns.org
 
G

Guest

Thanks for the reply. I'll give it a try

You could run this batch file:

@echo off
ping www.google.com -n 1 | find /i "bytes=" && echo Connection established!

Incidentally, there are several services that will detect
your external IP address and send it to a domain name
server so that a name such as kirkzeus.homedns.org
always resolves to your current address. Both the
program and the name registration are free on these
sites:
www.no-ip.com
www.dyndns.org
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top