How to delete Windows 7 virtual drive

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.


Solution 1:

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

Solution 2:

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

SUBST X: /D

where X is the SUBST drive