JSI Tip 3457. How do I delete all the drives I have mapped with a Subst command?

Jerold Schulman

March 8, 2001

1 Min Read
ITPro Today logo in a gray background | ITPro Today

It is easy to delete all the drives that you mapped with the net use command:

net use * /d /y

To delete all the drive mappings that you created with the subst command:

for /f "tokens=1 Delims=:" %%i in ('subst') do @if not "%%i"=="" subst %%i: /d




Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like