This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Windows volume labels
- From: "Elfyn McBratney" <elfyn-cygwin at exposure dot org dot uk>
- To: "cygwin" <cygwin at cygwin dot com>,"andrew brian clegg" <a dot clegg at mail dot cryst dot bbk dot ac dot uk>
- Date: Wed, 23 Apr 2003 15:10:44 +0100
- Subject: Re: Windows volume labels
- References: <Pine.LNX.4.44.0304231449440.28614-100000@sark.cryst.bbk.ac.uk>
> Hi folks,
>
> Apologies if this is well-documented but I can't find an answer in the
> usual places.
>
> Is there a cygwin-friendly way of retrieving the volume label for a
> particular drive (or for all drives) in e.g. a perl or shell script? Short
> of running Windows' dir.exe on the appropriate drive and parsing the
> result!
>
> Or would I have to use the Windows API?
IIRC, there isn't. Wouldn't be hard to do though, just use the
GetVolumeInformation() Win32 API call.
Elfyn
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/