daily pastebin goal

Find Unused Drive Letter

sweenig Jan 15th, 2014 218 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. for %%p in (z y x w v u s t r q p o n m l k j i h g f e d c b a) do (
  3.         if exist %%p:\nul echo. %%p Disk in use
  4.         if not exist %%p:\nul echo. %%p Disk is available
  5. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand