NET USE /DEL

B

Barney

I am unable to delete a mapped drive. If I type NET USE
X: /DEL, the shell responds "The device is being accessed
by an active process."

I know that a reboot would resolve the problem but is
there a way, preferably from a command prompt to determine
which process is using the drive mapping. I can't seem to
find the relevant information with PSTAT or the Task
Manager GUI.
 
J

Jim L

Hi,
Make sure you don't have the drive active in a command
window ie. you can't NET USE x: /DEL as Follows
X:\>NET USE x: /del
change to different drive first then use the command
X:\> c:
C:\>NET USE x: /del
 
B

Barney

Thanks Jim but that was the first thing I checked.
-----Original Message-----
Hi,
Make sure you don't have the drive active in a command
window ie. you can't NET USE x: /DEL as Follows
X:\>NET USE x: /del
change to different drive first then use the command
X:\> c:
C:\>NET USE x: /del

.
 
M

Marty List

Barney said:
I am unable to delete a mapped drive. If I type NET USE
X: /DEL, the shell responds "The device is being accessed
by an active process."

I know that a reboot would resolve the problem but is
there a way, preferably from a command prompt to determine
which process is using the drive mapping. I can't seem to
find the relevant information with PSTAT or the Task
Manager GUI.


Download the freeware HANDLE.EXE from http://www.sysinternals.com/

(Or for a GUI tool try Process Explorer)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top