batch file to disable network share on Windows XP
Posted
by
Robb
on Super User
See other posts from Super User
or by Robb
Published on 2011-06-24T16:06:04Z
Indexed on
2011/06/24
16:25 UTC
Read the original article
Hit count: 184
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
© Super User or respective owner