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

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




Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish