Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 17 down vote accepted

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

share|improve this answer
Windows 7 does not read autoexec.bat. – grawity Jan 24 '13 at 15:01
It does read it under some circumstances – Linger Jan 24 '13 at 19:52
SUBST X /D does not work but SUBST X: /D works fine for my computer. thanks – Arif Jan 24 '13 at 19:57

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


where X is the SUBST drive

share|improve this answer
let me quote this SO comment: 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

I use a .BAT file on startup to create several virtual drives. I found that in Windows 8.1, I cannot delete a particular virtual drive once it is created (it may be possible, but I do not know how to do it). No virtual drives will reappear after a reboot if the SUBSt instruction for it is not used either separately or in a .BAT file.

share|improve this answer
This is not an answer to the original question. To critique or request clarification from an author, leave a comment below their post - you can always comment on your own posts, and once you have sufficient reputation you will be able to comment on any post. – DavidPostill Nov 26 '14 at 8:30

Your Answer


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.