| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD |
| X-Spam-Check-By: | sourceware.org |
| X-IronPortListener: | Outbound_SMTP |
| X-IronPort-Anti-Spam-Filtered: | true |
| X-IronPort-Anti-Spam-Result: | Ar4AAAQWaU6cKEdK/2dsb2JhbABCmG+PE3iBRgEBAQEDEncCAQgNCxwSHxMXAQ0BAQQbGqQrmzCGDWAEhz2EOIxujAI |
| From: | "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov> |
| To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
| Date: | Thu, 8 Sep 2011 15:24:08 -0400 |
| Subject: | RE: Open Windows Explorer from Cygwin prompt |
| Message-ID: | <0105D5C1E0353146B1B222348B0411A20A23D32229@NIHMLBX02.nih.gov> |
| References: | <4E690DE0 DOT 8050204 AT freesbee DOT fr> <4E691163 DOT 1010309 AT t-online DOT de> <4E69139E DOT 5050600 AT freesbee DOT fr> |
| In-Reply-To: | <4E69139E.5050600@freesbee.fr> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id p88JObk8001831 |
Vincent Rivière sent the following at Thursday, September 08, 2011 3:13 PM
>Christian Franke wrote:
>>> Cygstart is not needed in this case. Explorer can be launched directly.
>> This works from cmd.exe and from any cygwin shell:
>>
>> explorer .
>
>You are right, this is equivalent in this specific case. But cygstart
>can also open Cygwin-style directories, explorer can't:
>
>cygstart ~
>cygstart /etc
>cygstart dir1/dir2
The following bash script opens Windows Explorer in the directory of the
first argument or the CWD if there are no arguments.
$ cat /usr/local/bin/explore
#!/bin/bash
/bin/cygstart --explore "${1:-.}"
Conversion to an alias is left as an exercise for the reader.
- 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |