Disconnect network drive with a "net" command line command / Opposite of "net use" ?


A

Anja Mechtel

I can connect/map a network drive from the command line by using the "net use" command e.g.

net use M: \\barny\myfolder23 /persistent:no

This works fine. But how do I disconnect this mapping again from the command line?

"net stop" is as far as I know only for stopping services.

Anja
 
Ad

Advertisements

G

Guest

Net use driveletter: /delete will disconnect the drive

If you do net use /? it will give you a list of options that you can use.
 
S

Steve Winograd [MVP]

I can connect/map a network drive from the command line by using the "net use" command e.g.

net use M: \\barny\myfolder23 /persistent:no

This works fine. But how do I disconnect this mapping again from the command line?

"net stop" is as far as I know only for stopping services.

Anja
net use M: /d

or

net use M: /delete

For more information on the "net use" command:

net use /?
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 
Ad

Advertisements

Joined
Jun 25, 2012
Messages
1
Reaction score
0
to disconnect a mapped network drive use the command net use z:/delete
 

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