I have two networks: work and home. The work subnet is 192.168.0.x whereas home's subnet is 192.168.1.x
At work I have two mapped drives but at home I don't have either. Any time I open explorer at home or mistakenly hover a file over those drives, windows hangs whilst attempting to connect to the drive. I'm currently using a script which decides whether or not to remove/map the drives based on whether or not 192.168.0.1 can be pinged (work router). The problem is that for some reason based on the event trigger of "connecting/disconnecting to/from a network" multiple instances get run at once and just hang there.
All things considered I'd like a more elegant solution. Is there not a way of changing the timeout for mapped drives? Is it possible to have a 'set configuration' in windows where that configuration has permanently mapped network drives and another configuration doesn't have them at all; something like a 'hardware profile'? I also have other programs I'd like to turn on/off based on my network location.