Re: find out which partiton
From: Phil Robyn [MVP] (zipprobyn_at_berkeley.edu)
Date: 09/11/04
- Next message: Randall Flag: "Re: find out which partiton"
- Previous message: Mark V: "Re: Path"
- In reply to: Randall Flagg: "find out which partiton"
- Next in thread: Matthias Tacke: "Re: find out which partiton"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 11 Sep 2004 08:09:36 -0700
Randall Flagg wrote:
> Hi there
>
> i have to find out which partitions do exist on harddisk 0 on a large number
> on computers.
>
> found a way to do it with a script using diskpart unfortunately this does
> not work on Windows NT.
>
> i need the existing drive letters for this partitions on Windows NT 4.0 SP6
> and Windows 2000 / XP...
>
> does anyone know a way to get this info by WSH-Script, shell script or a
> little command line tool?
>
> Thanks in advance
>
>
set valid_drives=
for %%a in (
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 call :test %%a
echo Valid drives are: %valid_drives%
goto :EOF
:test
if exist %1: set valid_drives=%valid_drives% %1:
goto :EOF
-- Phil Robyn Univ. of California, Berkeley u n z i p m y a d d r e s s t o s e n d e - m a i l
- Next message: Randall Flag: "Re: find out which partiton"
- Previous message: Mark V: "Re: Path"
- In reply to: Randall Flagg: "find out which partiton"
- Next in thread: Matthias Tacke: "Re: find out which partiton"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|