X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org X-IronPortListener: Outbound_SMTP X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgYBAAosfk2cKEcW/2dsb2JhbACYR41Gd6crmW6FYgSQOg From: "Buchbinder, Barry (NIH/NIAID) [E]" To: "cygwin AT cygwin DOT com" CC: "'carolus'" Date: Mon, 14 Mar 2011 17:55:59 -0400 Subject: RE: How to read thumb drive volume label Message-ID: <0105D5C1E0353146B1B222348B0411A209DAA10090@NIHMLBX02.nih.gov> References: <4D7E200C DOT 40707 AT bellsouth DOT net> <0105D5C1E0353146B1B222348B0411A209DAA1008C AT NIHMLBX02 DOT nih DOT gov> In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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 a windows "Command Prompt" window: c:\windows\system32\cmd.exe /c c:\cygwin\bin\dir and c:\windows\system32\cmd.exe /c dir Or in bash: "$(cygpath -sysdir)"/cmd.exe /c dir and "$(cygpath -sysdir)"/cmd.exe /c "c:\cygwin\bin\dir" The first dir in each pair is a cmd.exe builtin and the second is a cygwin executable. FYI, /bin/ls.exe and /bin/dir.exe are almost identical, differing by 3 bytes. As for label.exe, to know about it, one has be old enough to have run MS-DOS. (Personally, I think that running DESQview386 under DOS 3.3 was better than any version of Windows, just as some people on this list wax nostalgic for B20 and version 1.5.) :-) - Barry Disclaimer: Statements made herein are not made on behalf of NIAID. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple