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