On NT4.0 how can we get the corresponding drive letter from a device object
or device name ?
so if the device is \device\harddisk0\partition1\ how can we get the drive
letter assigned to this device ?
TIA
RB
On NT4.0 how can we get the corresponding drive letter from a device object
or device name ?
so if the device is \device\harddisk0\partition1\ how can we get the drive
letter assigned to this device ?
TIA
RB
Basic way is to query all existing symbolic links in
?? directory of form ‘:’.
You obtain a list of all existing drive letters and
corresponding device object names.
Then you should search the list to find out
the device name in the list.
Paul
> -----P?vodn? zpr?va-----
> Od: RB [SMTP:xxxxx@softhome.net]
> Odesl?no: Tuesday, August 29, 2000 4:05 PM
> Komu: File Systems Developers
> P?edm?t: [ntfsd] how to get drive letter from device object
>
> On NT4.0 how can we get the corresponding drive letter from a device
> object
> or device name ?
> so if the device is \device\harddisk0\partition1\ how can we get the drive
> letter assigned to this device ?
>
> TIA
> RB
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@sodatsw.cz
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
Be warned, however that this technique suffers from several deficiencies:
The basic problem here is the attempt to enforce certain semantics (namely
those of the DOS/Windows world) onto a different operating system (NT) where
they do not directly apply.
Regards,
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: Pavel Hrdina [mailto:xxxxx@sodatsw.cz]
Sent: Tuesday, August 29, 2000 10:11 AM
To: File Systems Developers
Subject: [ntfsd] RE: how to get drive letter from device object
Basic way is to query all existing symbolic links in
?? directory of form ‘:’.
You obtain a list of all existing drive letters and
corresponding device object names.
Then you should search the list to find out
the device name in the list.
Paul
> -----P?vodn? zpr?va-----
> Od: RB [SMTP:xxxxx@softhome.net]
> Odesl?no: Tuesday, August 29, 2000 4:05 PM
> Komu: File Systems Developers
> P?edm?t: [ntfsd] how to get drive letter from device object
>
> On NT4.0 how can we get the corresponding drive letter from a device
> object
> or device name ?
> so if the device is \device\harddisk0\partition1\ how can we get the drive
> letter assigned to this device ?
>
> TIA
> RB
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@sodatsw.cz
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
—
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)
I would suggest in NT 4 is to read information from the registry
\HKLM\System\Disk\Information key and see the disk assignments out there for
each partition and update corresspondingly
Mehtab
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Tony Mason
Sent: Tuesday, August 29, 2000 8:23 PM
To: File Systems Developers
Subject: [ntfsd] RE: how to get drive letter from device object
Be warned, however that this technique suffers from several deficiencies:
The basic problem here is the attempt to enforce certain semantics (namely
those of the DOS/Windows world) onto a different operating system (NT) where
they do not directly apply.
Regards,
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
-----Original Message-----
From: Pavel Hrdina [mailto:xxxxx@sodatsw.cz]
Sent: Tuesday, August 29, 2000 10:11 AM
To: File Systems Developers
Subject: [ntfsd] RE: how to get drive letter from device object
Basic way is to query all existing symbolic links in
?? directory of form ‘:’.
You obtain a list of all existing drive letters and
corresponding device object names.
Then you should search the list to find out
the device name in the list.
Paul
> -----P?vodn? zpr?va-----
> Od: RB [SMTP:xxxxx@softhome.net]
> Odesl?no: Tuesday, August 29, 2000 4:05 PM
> Komu: File Systems Developers
> P?edm?t: [ntfsd] how to get drive letter from device object
>
> On NT4.0 how can we get the corresponding drive letter from a device
> object
> or device name ?
> so if the device is \device\harddisk0\partition1\ how can we get the drive
> letter assigned to this device ?
>
> TIA
> RB
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@sodatsw.cz
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
—
You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)
—
You are currently subscribed to ntfsd as: xxxxx@veritas.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)