Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 23 Apr 2003 14:54:07 +0100 (BST)
From: andrew brian clegg <a.clegg@mail.cryst.bbk.ac.uk>
X-X-Sender: fcleg01@sark.cryst.bbk.ac.uk
To: cygwin@cygwin.com
Subject: Windows volume labels
Message-ID: <Pine.LNX.4.44.0304231449440.28614-100000@sark.cryst.bbk.ac.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-MailScanner-Information: Please contact CCSG (http://www.cryst.bbk.ac.uk/CCSG/) more information
X-MailScanner-cryst-bbk: Found to be clean
X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-11.6, required 10,
	BAYES_01, FROM_ENDS_IN_NUMS, USER_AGENT_PINE)
Note-from-DJ: This may be spam


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?

Cheers,

Andrew.




--
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/

