batch file to disable network share on Windows XP
- by Robb
Loosely related to this question Network Share causing Cygwin to run slowly after 'ls', I'd like to write a little batch file that I can execute to disconnect the host from any network shares and subsequently another batch file to reconnect. Ideally, this would be something that I can execute from a PuTTY terminal, SSHed into the box running cygwin.
I'm pretty sure the batch files can be written easily, but I don't know about executing them from a PuTTY terminal. Regardless, I'd still like the batchfiles anyways.
For the sake of simplicity my process would be:
Log into server via PuTTY
Run batch files to disconnect shares
Do what I need to do
Run batch files to reconnect shares
Exit session, closing PuTTY