How to remove ghost network drive

Networking and broadband talkabout. Need help with that new router or setting up a network?
Post Reply
User avatar
Executioner
Life Member
Posts: 10133
Joined: Wed Nov 22, 2000 11:34 am
Location: Woodland, CA USA

How to remove ghost network drive

Post by Executioner »

I have my laptop which I was sharing a folder called: d:\Downloads - OLD
Last night I decided to move this to my E drive since it had more room than the D drive.

On my desktop now it shows both locations. How can I remove the d:\Downloads - OLD from being displayed on my desktop? The new one is now shown as E:\Downloads - OLD2.
User avatar
Executioner
Life Member
Posts: 10133
Joined: Wed Nov 22, 2000 11:34 am
Location: Woodland, CA USA

Re: How to remove ghost network drive

Post by Executioner »

Never mind. I figured it out after more searching. I used the "net share" command in a dos prompt.
net share Downloads - OLD /delete
on my laptop that originally had the share.
User avatar
Executioner
Life Member
Posts: 10133
Joined: Wed Nov 22, 2000 11:34 am
Location: Woodland, CA USA

Re: How to remove ghost network drive

Post by Executioner »

LOL that did not work even though on my laptop it said it was deleted. So on my desktop I still show that ghost share even after rebooting my desktop.
User avatar
Executioner
Life Member
Posts: 10133
Joined: Wed Nov 22, 2000 11:34 am
Location: Woodland, CA USA

Re: How to remove ghost network drive

Post by Executioner »

OK - I had to reboot the laptop! So now it works. Jeez...you would think that there would be an easier way to remove orphaned shares by using a right click then delete. What could be more simple? Or maybe windows should be smart enough to realize that the share was moved or deleted and ask me if I wanted to delete the reference shortcut.
User avatar
FlyingPenguin
Flightless Bird
Posts: 32773
Joined: Wed Nov 22, 2000 11:13 am
Location: Central Florida
Contact:

Re: How to remove ghost network drive

Post by FlyingPenguin »

Welcome to the wonderful world of Windows File Sharing. Been there, done that, bought the t-shirt.
"Turns out I’m 'woke.' All along, I thought I was just compassionate, kind, and good at history. "

Image
User avatar
Executioner
Life Member
Posts: 10133
Joined: Wed Nov 22, 2000 11:34 am
Location: Woodland, CA USA

Re: How to remove ghost network drive

Post by Executioner »

Bring this up again - I have a share that won't delete. It reports that it does not exist, but when I issue the command "net share" it shows up as "H:\Music lossless". The command that I used to try and delete it was "net share H:\Music lossless /delete"
User avatar
FlyingPenguin
Flightless Bird
Posts: 32773
Joined: Wed Nov 22, 2000 11:13 am
Location: Central Florida
Contact:

Re: How to remove ghost network drive

Post by FlyingPenguin »

You may have to delete it by it's share name, which is not the full path. The full path no longer exists. If you accepted the default when you created the share, it's probably "Music lossless".

You're also going to need to use quotes because there's spaces in the file name. So try:
Net share "H:\Music lossless" /delete
Or
net share "Music lossless" /delete
"Turns out I’m 'woke.' All along, I thought I was just compassionate, kind, and good at history. "

Image
User avatar
FlyingPenguin
Flightless Bird
Posts: 32773
Joined: Wed Nov 22, 2000 11:13 am
Location: Central Florida
Contact:

Re: How to remove ghost network drive

Post by FlyingPenguin »

Edited my initial reply.
"Turns out I’m 'woke.' All along, I thought I was just compassionate, kind, and good at history. "

Image
User avatar
Executioner
Life Member
Posts: 10133
Joined: Wed Nov 22, 2000 11:34 am
Location: Woodland, CA USA

Re: How to remove ghost network drive

Post by Executioner »

Thanks Bob. This worked: net share "Music lossless" /delete

So if there are spaces, we need to use quotes?
User avatar
FlyingPenguin
Flightless Bird
Posts: 32773
Joined: Wed Nov 22, 2000 11:13 am
Location: Central Florida
Contact:

Re: How to remove ghost network drive

Post by FlyingPenguin »

Yup, otherwise the command line thinks it's {net share music}, with the bogus command lossless afterward. Any file path or file name with a space must be in quotes.
"Turns out I’m 'woke.' All along, I thought I was just compassionate, kind, and good at history. "

Image
Post Reply