9

To mount a network drive from the cmd prompt on windows I can do, for example:

net use z: \\vboxsvr\somedrive

How would I disconnect it from the cmd prompt?

2 Answers 2

35
net use z: /delete
1
  • 2
    "net use z: /d" will also work and save a few keystrokes as well...
    – user48838
    Oct 14, 2010 at 1:27
10

Ignacio answered the immediate problem, but one hint: There is a /help parameter for any subprogram of the net command. So, net use /help shows you everything you need to know for connecting to network resources, and with net /help you get an overview of the complete program.

4
  • 2
    also: command /?
    – joeqwerty
    Oct 13, 2010 at 17:12
  • 3
    Also: Google, which is what I used to find the answer. Oct 13, 2010 at 17:22
  • 1
    for some reason i didn't know how to google this one. i assumed it would be "net unuse" or "net remove" or something. but "net remove windows" gave not so good results
    – Claudiu
    Oct 13, 2010 at 18:17
  • +1 It's always good to show how to find the answer for themselves. Oct 14, 2010 at 0:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.