How to run a Windows application when the Internet is available
Using this technique, you can launch any program on your computer once the Internet connection is established.
It can have multiple uses for a general computer user, for example:
Let's see how exactly you can do that:
1. Download Wait4Net, a batch script.
2. Create a new shortcut on the desktop
2. Point it to the Wait4Net batch file. Then, type the following towards the end start "Path to any software that has to be luanched"
So, it finally becomes
Run this batch file and it will keep on pinging popular websites in a time interval of 5 seconds. If it gets a ping reply, it will go ahead and launch the program specified on the shortcut.
The time interval, websites being pinged etc. can be changed by editing the batch file.
Tips
It can have multiple uses for a general computer user, for example:
- Run a backup software when the Internet connection is established.
- Open the browser/ torrent client/ download manager or any other program automatically when the Internet is connected.
- Create an alert to notify you once the Internet connection is working.
- Monitor some already down websites to get alert when it becomes up again.
Let's see how exactly you can do that:
1. Download Wait4Net, a batch script.
2. Create a new shortcut on the desktop
2. Point it to the Wait4Net batch file. Then, type the following towards the end start "Path to any software that has to be luanched"
So, it finally becomes
Path_to_Wait4Net_Batch_file start "Path_to_software"
Run this batch file and it will keep on pinging popular websites in a time interval of 5 seconds. If it gets a ping reply, it will go ahead and launch the program specified on the shortcut.
The time interval, websites being pinged etc. can be changed by editing the batch file.
Tips
- Copy the shortcut to start up folder of your computer and it will start running automatically when Windows boots up.
- If you are on a local area network with no Internet connection and wants to launch a particular program when Ethernet cable is connected, you can customize the script to ping a local IP address.
- If you want to monitor someone in your local area network is turning their computer on, just modify the script to ping their IP address. However, if your organisation is not assigning static IPs all the time, it won't work.
- If you want the opened Window to be minimized by default, you can do that by modifying the shortcut.