How can my my batch file determine whether I'm on my work network?I didn't see this answer before I posted my ping idea. This approach seems a bit indirect -- try something that should only work on a certain network. I was wondering if there was something more direct -- a file or environment variable that can be tested. Perhaps there isn't.