How to disconnect a mapped drive permanently ?

F

flahmeshess

I have connected a mapped drive and set it to reconnect.

I later wanted to change the drive (ie to change from g: drive to j:
drive), but when I logon, it's mapped to both g: & j: drive.

How do I force it to permanently disconnect from g: drive ?

Thank you for your help in advanced.
 
P

Pegasus \(MVP\)

flahmeshess said:
I have connected a mapped drive and set it to reconnect.

I later wanted to change the drive (ie to change from g: drive to j:
drive), but when I logon, it's mapped to both g: & j: drive.

How do I force it to permanently disconnect from g: drive ?

Thank you for your help in advanced.

Start a Command Prompt (Start / Run / cmd {OK})
then turn off persistency, then disconnect the drive:

net use /persistent:no
net use g: /del
net use h: /del
 
P

Pegasus \(MVP\)

I prefer to map my shares by explicit action via a logon
batch file, rather than relying on remembered connections.
I therefore never use persistency. It's up to you how you
want to play this.
 
F

flahmeshess

May be that's a better way to do it. I run some batch files based on
the drive letter. So it may be better to use a batch file to assign
the drives. Thanks for the idea.
 
D

Dave Patrick

Or better yet just use UNC paths in your batch.

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| May be that's a better way to do it. I run some batch files based on
| the drive letter. So it may be better to use a batch file to assign
| the drives. Thanks for the idea.
 
R

Ron Ruble

flahmeshess said:
May be that's a better way to do it. I run some batch files based on
the drive letter. So it may be better to use a batch file to assign
the drives. Thanks for the idea.

It's also good if you have a laptop you connect to more than
one network. It can be -very- slow waiting for WIn2K/XP to
try every way to find the drive at startup before failing.
 

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