Hello everyone,
My company recently started to block incoming pop3 and outgoing smtp mail. I've setup an ssh tunnel to my home machine and everything works fine, but it means that I have to:
I'm trying to automate #2 and have been having some trouble. I can easily determine where I'm at via a batch file by looking at the IP addresses. I've read about the /add command line parm, but I can't seem to get it to work.
c:\apps\thebat\thebat.exe /Add:InServer=localhost /add:OutServer=localhost /exit
The bat exits and when I start it back up the settings have not changed. I've tried various configurations of quotes but nothing seems to work (although the bat does exit via the /exit switch).
Does anyone have any idea on how to make this work or better ways to automate the switch. I was hoping it would be something simple and dynamic. I'm a bit bummed that the bat has to be restarted (according to the docs).
Thanks for all your help.
Michael
michael at fross dot org
My company recently started to block incoming pop3 and outgoing smtp mail. I've setup an ssh tunnel to my home machine and everything works fine, but it means that I have to:
| Code |
|---|
1. Run a batch file I wrote to setup the tunnel 2. Change my smtp and pop3 settings from their real value to localhost. I then have to change them back when I go home. |
I'm trying to automate #2 and have been having some trouble. I can easily determine where I'm at via a batch file by looking at the IP addresses. I've read about the /add command line parm, but I can't seem to get it to work.
c:\apps\thebat\thebat.exe /Add:InServer=localhost /add:OutServer=localhost /exit
The bat exits and when I start it back up the settings have not changed. I've tried various configurations of quotes but nothing seems to work (although the bat does exit via the /exit switch).
Does anyone have any idea on how to make this work or better ways to automate the switch. I was hoping it would be something simple and dynamic. I'm a bit bummed that the bat has to be restarted (according to the docs).
Thanks for all your help.
Michael
michael at fross dot org