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?

link|improve this question

74% accept rate
feedback

2 Answers

up vote 21 down vote accepted
net use z: /delete
link|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
feedback

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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