Disconnecting Shared Drive

  • Thread starter Thread starter Vlad Olchanski, PhD
  • Start date Start date
V

Vlad Olchanski, PhD

I have two computers A and B in a peer-to-peer network.

To connect from computer A to B, I enter the username and password and
then can operate files at B from A.

When I log off computer A and then somebody else logs on with the same
username, the connection to computer B is still active.

How can I disconnect computer B from A before logging off A?

Once I found a way to do it through many layers of graphical interface
menus -- now I forgot how -- and even if I recall how, I cannot make
my operators to memorize this.

Is there a way to write a DOS script or registry patch to disconnect
the connected shared drive?

Thank you.

Hans
 
there is the command line:
NET SHARE [drive] /DELETE
that you can put in a script or do it direct.
but, i think that shutdown is better.

alf
 
This does not work. I have a button in Total Commander to do this
command and it does not work either.

Shut down certainly works but it is too dramatical.

there is the command line:
NET SHARE [drive] /DELETE
that you can put in a script or do it direct.
but, i think that shutdown is better.

alf


Vlad Olchanski said:
I have two computers A and B in a peer-to-peer network.

To connect from computer A to B, I enter the username and password and
then can operate files at B from A.

When I log off computer A and then somebody else logs on with the same
username, the connection to computer B is still active.

How can I disconnect computer B from A before logging off A?

Once I found a way to do it through many layers of graphical interface
menus -- now I forgot how -- and even if I recall how, I cannot make
my operators to memorize this.

Is there a way to write a DOS script or registry patch to disconnect
the connected shared drive?

Thank you.

Hans
 
Back
Top