I have an ultralight PC with Windows 7 that I use during my daily bus commute. Since the processor speed is limited, I'm looking for a way to disable/enable Dropbox when I'm not connected to a WiFi network. (Dropbox seems to use a steady chunk of my CPU even when it can't sync anything.)
There is an option to disable syncing via the Dropbox tray icon, but I'd like this to be as seamless as possible. I'm a .NET developer, so writing code is an option. So far what I've considered:
- A Windows task that is triggered when I enable/disable the WiFi card via the hardware switch. This could run a batch file to start/stop the Dropbox process. I'm having trouble finding an event to trigger off of, though.
- An Autohotkey macro to start/stop the process. Too manual.
- A C# app that would detect a network connection and start/stop Dropbox. Seems like it would be a pain to write.
Are there any options I'm overlooking? If someone could point me to a resource that would help me implement something similar, I would appreciate it.