38

I created a virtual drive using "SUBST" command. But I can not delete now.

Can anybody tell me how can I delete this virtual drive.

Donald Duck
  • 2,473
  • 10
  • 29
  • 45
Arif
  • 531
  • 1
  • 4
  • 7

2 Answers2

55

If using the command SUBST X: /D does not work then try rem or delete the occurrence of the SUBST command in the autoexec.bat file & reboot.

If using Windows 7, try to open your prompt window as Administrator and then run the SUBST X: /D normally

maihe
  • 3
  • 2
Linger
  • 3,274
  • 10
  • 35
  • 47
13

After doing a Google search (taking less than a minute) I found this:

SUBST X: /D

where X is the SUBST drive

gronostaj
  • 55,965
  • 20
  • 120
  • 179
Wes
  • 559
  • 3
  • 18
  • 16
    let me quote [this SO comment](http://meta.stackexchange.com/questions/8724/how-should-we-deal-with-google-questions#comment141206_8724): Imagine you google for a question, and the first search result that comes up is a StackOverflow post for exactly the question you need. So you click on it, read the answer... and what does it say? “Just google for it!” – nixda Jan 24 '13 at 15:17