Open Windows Explorer from Cygwin prompt

Buchbinder, Barry (NIH/NIAID) [E]
Thu Sep 8 19:24:00 GMT 2011

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/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:
Unsubscribe info:

More information about the Cygwin mailing list