We have a laptop that is primarily used offline, but when it is connected to our network (via ethernet cable), we would like to start a backup application. Is it possible?
The network address is static.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
You can create a scheduled task to run a program. In the options there is an option to only start the task if a specific network connection is available.
In the taskoptions, select a trigger and set it to this event data (Event 10000):
In the action tab, select the program you want to run.
Operating under the assumption that when it connects to the network, it also has internet access (though it may work with any network connection, not sure):
Take a look at wait4net.bat.
It is a pretty simple batch file that is executed with:
wait4net.bat start "explorer.exe"
explorer.exe can be whatever you want to be run when a connection is established).
So you could set that up as a startup script that points to your backup software (or batch file/whatever).
Just tested on Win8x64 and it is still relevant.