I have a batch file that runs whenever I log in on my laptop. I only want the batch file to execute when I'm on my employer's network. At home, I'd like the batch file to simply exit.
What's an easy way to detect (from a batch file) whether I'm on a certain network?