Marty's blog

This is a personal blog that might cover anything including places visited or want to visit, interesting world or national news, movies, sports, or tech industry information

7/28/09

find drvs .bat


@echo off & setlocal enableextensions enabledelayedexpansion
echo DRIVES THAT ARE READY
for %%d in (a: b: c: d: e: f: g: h: i: j: k: l: m: n:
o: p: q: r: s: t: u: v: w: x: y: z:) do (
dir %%d\ > nul 2>&1
if !errorlevel! EQU 0 echo %%d
)
echo DRIVES THAT ARE PRESENT
(for %%d in (A B C D E F G H I J K L M
N O P Q R S T U V W X Y Z) do ^
@fsutil fsinfo drivetype %%d:) ^
find /v "No such Root Directory"
:: DOES SAME THING AS 'DRIVES PRESENT' ABOVE
::for /f "tokens=1,2" %%a in ('fsutil fsinfo drives^more') do ( ^
::for /f "tokens=1" %%c in ('echo/%%b %%a') do fsutil fsinfo ^
::drivetype %%c
::)
endlocal & goto :EOF
Posted by Unknown at 8:02 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Bookmarks

  • Gadget Age blog (removed)
  • SmallTime blog

About Me

Unknown
View my complete profile

Blog Archive

  • ►  2012 (1)
    • ►  October (1)
  • ►  2011 (34)
    • ►  December (1)
    • ►  October (2)
    • ►  September (4)
    • ►  June (7)
    • ►  April (6)
    • ►  March (8)
    • ►  February (5)
    • ►  January (1)
  • ►  2010 (13)
    • ►  December (5)
    • ►  November (3)
    • ►  October (2)
    • ►  September (1)
    • ►  April (1)
    • ►  January (1)
  • ▼  2009 (19)
    • ►  November (2)
    • ►  October (2)
    • ►  September (1)
    • ►  August (2)
    • ▼  July (9)
      • Jazz pianist in co springs
      • resolve USB connectivity issues (windows mobile)
      • $9.95 for year on classmates.com
      • RC Forums: Xbox 360 IR Remote configuration file (...
      • In blogger, can I move posts to another blog all a...
      • Info on pronto 1st gen remotes cable
      • find drvs .bat
      • Command Prompt command history on Windows XPhttp:/...
      • How can I sync multiple google calendars with ipho...
    • ►  March (3)
  • ►  2008 (16)
    • ►  December (11)
    • ►  November (5)
Travel theme. Powered by Blogger.