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?

Claudiu
  • 1,157
  • 5
  • 18
  • 27

2 Answers2

35
net use z: /delete
Ignacio Vazquez-Abrams
  • 45,019
  • 5
  • 78
  • 84
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.

Sven
  • 97,248
  • 13
  • 177
  • 225