Detecting Internet connection in Windows XP.
As promised, here is the Internet Apps loader for Windows XP.
ping -n 1 www.google.co.uk
If %errorlevel%==0 GOTO programs
echo Starting Pidgin.
echo Starting Skype.
Basically it’s the same script with a few changes since the languages are different. The start command loads programs in the same way the trailing & did in Linux and allows the batch file to close at the end and not take up memory.
The @echo off simply prevents excessive text from popping up while the batch file runs.
The main difference is the procedure like layout. The If statement sends it strait to the programs procedure if there’s a connection, otherwise strait to the end.
To make this load on startup, put the .bat file somewhere sensible like in the windows folder, then create a shortcut to it in your startup folder in start menu.
UPDATE: Have made an updated version of this script, available here.