Delete shares being used by active processes with net use

  • Thread starter Thread starter =?iso-8859-1?Q?M=E1rio_Sim=F5es?=
  • Start date Start date
?

=?iso-8859-1?Q?M=E1rio_Sim=F5es?=

Hello all,

I have a problem wich is i am not able to disconnect a
network drive with net use because it's being used by an
active process.
But i can do it with explorer's disconnect network drive,
only it will ask me to do confirm yes/no.
I really need a way to force the disconnection in a way
that is transparent to the user...
Does anyone know a way to do this?
Net use will always state:
--->C:\>net use z: /delete
--->The device is being accessed by an active process.
--->More help is available by typing NET HELPMSG 2404.
The problem is i don't know what is accessing it...

Thanks in advance for any help!

Mário
 
Back
Top