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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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.
 
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
 
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
 
Back
Top