Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 28 down vote accepted
net use z: /delete
share|improve this answer
1  
"net use z: /d" will also work and save a few keystrokes as well... –  user48838 Oct 14 '10 at 1:27

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.

share|improve this answer
2  
also: command /? –  joeqwerty Oct 13 '10 at 17:12
2  
Also: Google, which is what I used to find the answer. –  Ignacio Vazquez-Abrams Oct 13 '10 at 17:22
    
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 '10 at 18:17
    
+1 It's always good to show how to find the answer for themselves. –  John Gardeniers Oct 14 '10 at 0:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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