tag:blogger.com,1999:blog-19789758.post6866081363914044597..comments2010-05-02T00:08:55.735+10:00Comments on Rob on Programming: Cygwin bash script: open windows explorer anywhereRobert Mark Bramhttp://www.blogger.com/profile/06992070434006567093noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-19789758.post-25576533854230345702010-01-30T04:30:07.287+11:002010-01-30T04:30:07.287+11:00There's a very good implementation of the &quo...There's a very good implementation of the "open" command for cygwin.<br /><br />http://www.davehylands.com/Software/Open/<br /><br />It will open any file using the default handler for the filetype or any directory using Explorer.jvsteinhttps://www.blogger.com/profile/01272002782875035614noreply@blogger.comtag:blogger.com,1999:blog-19789758.post-40346146698310493602009-05-27T23:50:58.417+10:002009-05-27T23:50:58.417+10:00Thanks Igor - I will give that a try!Thanks Igor - I will give that a try!Robert Mark Bramhttps://www.blogger.com/profile/06992070434006567093noreply@blogger.comtag:blogger.com,1999:blog-19789758.post-85696813722732335402009-05-27T22:58:49.174+10:002009-05-27T22:58:49.174+10:00I suppose it's better to use native windows' "star...I suppose it's better to use native windows' "start" command. It traits some types in a different way. E.g. explorer opens *.h files in IE window but "start" opens them in associated application.<br /><br />Example:<br /><br />#!/bin/bash<br />if [ "$1" = "" ]; then<br /> NATIVE_PATH="."<br />else<br /> NATIVE_PATH="$1"<br />fi<br /><br />WIN_PATH=`cygpath -w -a "${NATIVE_PATH}"`<br />cmd /C start "" "$WIN_PATH"Igor Mikushkinhttps://www.blogger.com/profile/10415943317265697903noreply@blogger.comtag:blogger.com,1999:blog-19789758.post-59718671303645821522009-03-26T05:22:00.000+11:002009-03-26T05:22:00.000+11:00Yes thank you!Such a time saver and feature that I...Yes thank you!<BR/>Such a time saver and feature that I have wanted for so long. Previous googling got me no where and have given up, thanks again!Tabunhttps://www.blogger.com/profile/18006565438239539552noreply@blogger.comtag:blogger.com,1999:blog-19789758.post-61781936776266740552009-01-30T15:25:00.000+11:002009-01-30T15:25:00.000+11:00Thanks Tristan - I am very happy it helped you. :)...Thanks Tristan - I am very happy it helped you. :)Robert Mark Bramhttps://www.blogger.com/profile/06992070434006567093noreply@blogger.comtag:blogger.com,1999:blog-19789758.post-14987097369806791322009-01-30T11:24:00.000+11:002009-01-30T11:24:00.000+11:00Thanks a lot Rob! I have been wanting this functio...Thanks a lot Rob! I have been wanting this functionality for a while but not been able to justify the time on it. SweeeeeeeetUnknownhttps://www.blogger.com/profile/15399106117228647020noreply@blogger.comtag:blogger.com,1999:blog-19789758.post-92049428000327383032008-09-19T09:41:00.000+10:002008-09-19T09:41:00.000+10:00I am glad the tip was of use to you Brian - thanks...I am glad the tip was of use to you Brian - thanks! :)Robert Mark Bramhttps://www.blogger.com/profile/06992070434006567093noreply@blogger.comtag:blogger.com,1999:blog-19789758.post-5295861181351292772008-09-19T01:00:00.000+10:002008-09-19T01:00:00.000+10:00Very nice! Just yesterday I was looking to see if ...Very nice! Just yesterday I was looking to see if cygwin had an equivalent to Mac OS X's open command.<BR/><BR/>Thanks for the post!Brian T. Granthttps://www.blogger.com/profile/15129994879581466607noreply@blogger.com