View Full Version : What drives are available

03-31-2008, 12:49 AM

is there a DOS command (that I'm not aware of) that lists the available drives?

I use ghost, and boot up using USB1.1 or 2 and sometimes no drive is detected, I'd like a command to tell me what is available, any luck?

Needless to say, this question comes from another petulant Sony Vaio.

Best regards,

03-31-2008, 01:10 AM
I dug this up from a long time ago from one of my boot discs.
It only works on drives that actually have something on them...like it won't detect empty cd drives....

Put this in a batch file and then run it in your dos prompt.

@echo off
if exist C:\. echo C
if exist d:\. echo D
if exist e:\. echo E
if exist f:\. echo F
if exist g:\. echo G
if exist h:\. echo H
if exist i:\. echo I
if exist j:\. echo J
if exist k:\. echo K
if exist l:\. echo L
if exist m:\. echo M
if exist n:\. echo N
if exist o:\. echo O
if exist p:\. echo P
if exist q:\. echo Q
if exist r:\. echo R
if exist s:\. echo S
if exist t:\. echo T
if exist u:\. echo U
if exist v:\. echo V
if exist w:\. echo W
if exist x:\. echo X
if exist y:\. echo Y
if exist z:\. echo Z
echo Drives are present

I can't take credit for it, because someone showed me how to do it a long time ago. I'm just passing it along.

03-31-2008, 01:13 PM
excellent! thanks