Re: Drive List

T

Test

I am trying to boot from a "DOS" disk and then show what drives the DOS disk
sees.

EX:
DRIVES AVAILABLE
C:
D:

Thanks
 
W

Walter Schulz

I am trying to boot from a "DOS" disk and then show what drives the DOS disk

Boot DOS and try this:

IF EXIST c:\. echo Drive C: is present

if this works you have to create a batch file like

REM ===chkdrv.bat===
@echo off
cls
IF EXIST c:\. echo Drive C: is present
IF EXIST d:\. echo Drive D: is present
IF EXIST e:\. echo Drive E: is present
IF EXIST f:\. echo Drive F: is present
IF EXIST g:\. echo Drive G: is present
REM ===EOF===

You won't be able to detect NTFS drives. You may want to download
NTFS4dos from www.sysinternals.com

Ciao, Walter
 
T

Test

Thanks I will give that a try. I was looking for something like a port of
the unix DF command but was not finding anything. Just goes to show that
the best approach is K.I.S.S.


Thanks.

Gregory
 
M

Matthias Tacke

Test said:
I am trying to boot from a "DOS" disk and then show what drives the DOS disk
sees.

EX:
DRIVES AVAILABLE
C:
D:

Thanks

Hello Test?,

I have a quite old Utility from Ziff that does exactly that.

Here is an example Output

E:\>drives

Drives.com
(c) 1988 Ziff Communications
Valid drives are A: C: D: E: F: K: L: N: S: T: U:

E:\>

The program runs even in w2k xp. It has the enormous size of 186 bytes.

I don't know where you can legally get it.

Via Google you will find some assembly language/Pascal examples.

hth
Matthias

PS: I found the origin of the program. It was included in the book
Dos Power Tools from PC Magazine 1988
 
P

Paul R. Sadowski

Test said:
Thanks I will give that a try. I was looking for something like a port of
the unix DF command but was not finding anything. Just goes to show that
the best approach is K.I.S.S.

16 or 32 bit app? This one is 32bit.
http://paulsadowski.com/scripts/download.asp?fn=df.exe

usage: df [-c -b -f|-F -r|-R -w|-W [drive ...]

-f : include floppy disks
-F : do only floppy disks
-c : include CD-ROMs
-r : exclude remote disks
-R : do only remote disks
-b : (bare display) no header or footer or totals
-w : display output in a Windows Messagebox
 
G

guard

Here is an example Output

E:\>drives

Drives.com
(c) 1988 Ziff Communications
Valid drives are A: C: D: E: F: K: L: N: S: T: U:

E:\>

The program runs even in w2k xp. It has the enormous size of 186 bytes.

The Mount/\Command ".ListCD" lists the current drive and directory of all
accessible local and mapped drive letters. The Mt/\Cmd ".ListAvail"
displays all available (unused and unmapped) drive letters.

..ListCD 58 bytes
..ListAvail 72 bytes
----------
130 bytes

*******

From a command prompt inside NT/2K/XP/K3:

C:\GuardPost>. listcd
C:\GuardPost
D:\
E:\
F:\
Q:\
R:\Office_2003_Beta_2
S:\
T:\
W:\
X:\
Z:\

C:\GuardPost>. listavail
G
H
I
J
K
L
M
N
O
P
U
V
Y

*******
For color-keyed examples, see
(http://TheSystemGuard.com/MtCmds/ListValue/ListCD.htm)
(http://TheSystemGuard.com/MtCmds/ListValue/ListAvail.htm)

*******

Notes:

1. .Mount/\Commands are constructed using ONLY builtin
commands common to all four platforms (NT/2K/XP/K3).
2. .M/\C's are NOT case sensitive. Mixed case is used
for Visual Clarity only.
3. The (FREE) Advanced NT/2K/XP Command Library (ntlib.cmd)
provides over 50 sample Mount/\Commands to assist with
writing and documenting RELIABLE cross-platform scripts.
You can obtain it at http://ntlib.com.

*******

-tsg
____________________________________________________________
TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
Free and "Almost Free" Knowledge for Windows System Admins!
 
M

Mark V

guard wrote in
It must be SPAMday again for the "Guard"!

More advertisements and more spammer-tactics in which a singly
addressed news group is replied to with addeditional group replies.


[ ]
-tsg
____________________________________________________________
TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
Free and "Almost Free" Knowledge for Windows System Admins!

Domain Name: THESYSTEMGUARD.COM
Domain Name: BOOMINGORFUMING.COM

Administrative Contact
Evelyn L. Stafford-> (e-mail address removed)
JWC Computer Communications
6513 Deane Hill Drive
Knoxville, TN 37919
US
Phone 865-584-9075
Fax
 
M

Matthias Tacke

Mark V said:
guard wrote in
It must be SPAMday again for the "Guard"!

More advertisements and more spammer-tactics in which a singly
addressed news group is replied to with addeditional group replies.
You definitly are right. I thought i got rid of guards postings after
plonking him, but today i received a personal mail.

In germany where I come from, i could take some legal action, but as far
as I know there are only some states preparing laws against spammers
of this type.

I am in no way interested in the so called products of guard. And since
plonking ins't enough I mention it here. I feel I am not alone with
my opinion.

Sorry for this off topic posting, but i had to get rid of it.
 
G

guard

Ritchie said:
How does that help anyone booting from DOS?

The response was directed at the statement
The program runs even in w2k xp. It has the enormous size of 186 bytes.

and not at the original poster's question.

*******

-tsg
____________________________________________________________
TheSystemGuard.com | BoomingOrFuming.com | MountCommands.com
Free and "Almost Free" Knowledge for Windows System Admins!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top