Running programs only when online

Discussion in 'Wireless Internet' started by Gail Gurman, Jun 11, 2004.

  1. Gail Gurman

    Gail Gurman Guest

    Is there such a thing as a program that detects an Internet or network
    connection and runs starts certain programs (and perhaps closes them when
    the connection is lost)?

    My laptop is usually connected to the Internet via wireless cable router.
    But it is in the nature of a laptop to not always be in the same place,
    and sometimes I don't have an access point. Besides, sometimes I just
    lose my wireless connection for some reason.

    Whenever I boot without an Internet connection, I have a few programs
    that try to connect, fail, and complain. I can usually avoid this by just
    having the laptop hibernate instead of turning it off. But occasionally I
    have to actually reboot in a situation where I have no connection.

    It would be nice if, instead of running the programs that need
    connections during startup, I could run another program that controlled
    those programs, only allowing them to start if a connection is available.

    Is there such a thing?
     
    Gail Gurman, Jun 11, 2004
    #1
    1. Advertisements

  2. Yes, the ICQ NetDetect program does this. I don't have ICQ on this machine
    but I seem to recall that you can configure NetDetect to launch other apps
    as well.

    HTH
    -pk
     
    Patrick Keenan, Jun 11, 2004
    #2
    1. Advertisements

  3. Gail Gurman

    Gail Gurman Guest

    That's a thought, but I wonder if you can run NetDetect without running
    ICQ. I prefer Trillian.
     
    Gail Gurman, Jun 12, 2004
    #3
  4. Gail Gurman

    DS Guest

    Why not just NOT start those programs everytime you re-boot and instead
    you can create a dos .bat file to place on the desktop which you can
    double-click once at boot time to start all of your programs that require
    an internet connection.

    I futzed with this for a while trying to start a bunch of MRTG scripts
    all at the same time w/o having to start each individually.

    The trick is not to start the exe file in the batch file, but rather
    execute a .lnk file (shortcut).

    I just created a .bat file to test it out and this is all that's in it,
    the full path to the shortcut must be there as well as DOS equivalent
    folder and .lnk names:

    C:\Docume~1\ds\StartM~1\Programs\Internet\filezilla\FileZilla.lnk
    C:\Docume~1\ds\StartM~1\Programs\Audio\Winamp\winamp.lnk

    When I double click it, both winamp and filezilla start and then the .bat
    file terminates automatically. This won't work with the .exe file because
    if it is done that way, it will execute the first line and wait for that
    program to end before it executes the next line.


    DS
     
    DS, Jun 12, 2004
    #4
  5. Gail Gurman

    Coz Guest

    I think you could use hardware profiles if you are win2k/xp.
     
    Coz, Jun 12, 2004
    #5
  6. Gail Gurman

    Gail Gurman Guest

    That would be great if I didn't normally have an Internet connection, but
    the default situation is that I am connected. I don't want to have to
    manually run a batch file almost every time I boot. It's really when I'm
    not connected that I want something different to happen.
     
    Gail Gurman, Jun 12, 2004
    #6
  7. Gail Gurman

    Gail Gurman Guest

    How do I associate software with a hardware profile?
     
    Gail Gurman, Jun 12, 2004
    #7
  8. Gail Gurman

    Hactar Guest

    Or put in the batch file:

    start foo.exe
    start bar.exe
    ....
     
    Hactar, Jul 11, 2004
    #8
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.