Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Wed, 23 Apr 2003 14:54:07 +0100 (BST) From: andrew brian clegg X-X-Sender: fcleg01 AT sark DOT cryst DOT bbk DOT ac DOT uk To: cygwin AT cygwin DOT com Subject: Windows volume labels Message-ID: 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/