- Disconnect network drive with a "net" command line command / Opposite of "net use" ?
- Posted by Anja Mechtel on April 26th, 2006
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
- Posted by Steve Rollins on April 26th, 2006
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.
"Anja Mechtel" wrote:
- Posted by Steve Winograd [MVP] on April 26th, 2006
In article <444f2d46$0$11063$9b4e6d93@newsread4.arcor-online.net>,
bugsy_a@internal.com (Anja Mechtel) wrote:
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
- Disconnect network drive with a "net" command line command / Opposite of "net use" ? (Help and Support) by Anja Mechtel
- command line completion bug when filename starts with "[" (Microsoft Windows) by Calin Iaru
- set "Ignore" driver signing from command line??? (Customizing) by Mick
- "Mail Recipient" Command Missing on "Send To" Menu (Help and Support) by jimbo
- Office web server config wiz. - "missing or incorrect command line parameters" (Home and office) by Jeremy

