Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot delete mapped drive connection

Status
Not open for further replies.

OhioSteve

MIS
Mar 12, 2002
1,352
US
I have been working with several .bat files that create and remove shared drives. I was developing a new .bat file, and I probably made syntax mistakes during this development process.

This afternoon I noticed an icon for the "e" drive in "my computer". This icon had a red x through it. I opened a DOS prompt and attempted to delete the faulty connection. DOS thinks that the connection does not exist, but it also thinks that the name "e" is already in use. I want to get rid of the icon with an x through it. How do I do this? I have appended a screen capture.


Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\Documents and Settings\Smith1>net use e:\ /delete
The network connection could not be found.

More help is available by typing NET HELPMSG 2250.


C:\Documents and Settings\Smith1>NET HELPMSG 2250

The network connection could not be found.


EXPLANATION

This network connection does not exist.

ACTION

To display a list of shared resources to which your computer
is connected, type:

NET USE



C:\Documents and Settings\Smith1>NET USE
New connections will be remembered.

There are no entries in the list.


C:\Documents and Settings\Smith1>net use e: \\[server name]\[shared folder name]
System error 85 has occurred.

The local device name is already in use.


C:\Documents and Settings\Smith1>

 
Try to delete it manually

right click the e: drive and choose disconnect.
 
You may need to manually remove the reference to it from within the registry.

Search your registry for the path it thinks it is conected to.

I hope you find this post helpful.

Regards,

Mark
 
I checked the server this morning and the bogus drive had vanished. So the problem (apparently) fixed itself. This is weird.
 
Someone already gave the syntax, but I know the syntaxt you were typing was incorrect.

The correct syntaxt would be:

net use E: /delete

No \ after the drive letter.

I know your problem is fixed, but just for future reference.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top