Re: How to read thumb drive volume label

2011-03-14 Thread carolus
On 3/14/2011 4:55 PM, Buchbinder, Barry (NIH/NIAID) [E] wrote: carolus sent the following at Monday, March 14, 2011 1:05 PM I didn't realize that the output of dir depended on whether it was invoked from cygwin or from cmd, and I didn't know about label.exe. dir does not differ depending on fr

RE: How to read thumb drive volume label

2011-03-14 Thread Buchbinder, Barry (NIH/NIAID) [E]
carolus sent the following at Monday, March 14, 2011 1:05 PM >I didn't realize that the output of dir depended on whether it was >invoked from cygwin or from cmd, and I didn't know about label.exe. dir does not differ depending on from where it is invoked. Compare the output of the following. In

Re: How to read thumb drive volume label

2011-03-14 Thread carolus
On 3/14/2011 11:11 AM, Buchbinder, Barry (NIH/NIAID) [E] wrote: Charles Russell sent the following at Monday, March 14, 2011 10:03 AM Is there some way to read the volume label on a USB flash drive? Something like blkid in linux? Something like this? function label() { $(cygpath --sysdir

RE: How to read thumb drive volume label

2011-03-14 Thread Buchbinder, Barry (NIH/NIAID) [E]
Charles Russell sent the following at Monday, March 14, 2011 10:03 AM >Is there some way to read the volume label on a USB flash drive? >Something like blkid in linux? Something like this? function label() { $(cygpath --sysdir)/cmd /c dir ${1}:\\ | \ tr \\r \\n | \ sed -n -e '