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

  • Thread starter Thread starter Anja Mechtel
  • Start date Start date
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
 
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.
 
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
 
Back
Top