Open windows executable, file, or folder from cygwin terminal

explorer $( cygpath "/path/to/file_or_exe" -w )
This executes faster than cygstart.exe I put this in a script and added it to my path: cat `which explore.sh` #!/bin/bash if [ $# -eq 0 ]; then explorer.exe $( cygpath `pwd` -w ) & else explorer.exe $( cygpath $1 -w ) & fi; Using the script you just type explore.sh file_or_executable Note: you can do this for any file that has an associated executable in the windows registry. This is quite handy if you want to open pictures or movies from xterm.
Sample Output
$ explorer $( cygpath "/path/to/executable" -w ) # Run the windows executable
$ explorer $( cygpath "movie file.avi" -w ) # Plays movie file with default player
$ explorer $( cygpath "/path/to/a folder" -w ) # Opens a folder in windows explorer

-2
2009-07-22 17:00:21

What Others Think

explorer.exe often chooses the wrong app when opening files, whereas cygstart is usually more accurate. I also have never noticed cygstart to be especially slow. Since I'm used to working on a Mac, I use a function to map open to cygstart: open () { echo 'Using Windoze cygstart.exe instead.'; cygstart "$*" ; }
Ben · 612 weeks and 6 days ago
If it opens the wrong app, then it is because you have the wrong app in your windows registry. You should update your registry with the correct app. You can quickly update it using the "Open with..." option from windows explorer. I can safely confirm that cygstart is slow on Windows Vista. It takes much longer than using explorer.exe! Its the same speed as double clicking a file from windows explorer.
Highwayman · 612 weeks and 5 days ago
Cygstart uses the same mechanism as Explorer... and shouldn't be any slower.
romulusnr · 601 weeks and 5 days ago
Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. Click here
xoheko1229 · 16 weeks and 2 days ago
Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch. Thanks for that insight you provide the readers! find" rel="nofollow">http://personeriadebarranquilla.gov.co/?option=com_k2&view=itemlist&task=user&id=3107'>find this
bojokey283 · 16 weeks and 1 day ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. [url=https://www.lasvegaspoolcleaningservice.com/]pool cleaning service las vegas[/url] pool cleaning service las vegas
bojokey283 · 16 weeks and 1 day ago
This article gives the light in which we can observe the reality. This is very nice one and gives indepth information. Thanks for this nice article. follower kaufen PayPal
bojokey283 · 15 weeks and 3 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. clima controlo
bojokey283 · 15 weeks and 2 days ago
All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts.Thanks online marketing
bojokey283 · 15 weeks and 2 days ago
Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!. cable
bojokey283 · 14 weeks and 6 days ago
I love the way you write and share your niche! Very interesting and different! Keep it coming! coronavirus cancun
bojokey283 · 14 weeks and 5 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. carpet cleaning services
bojokey283 · 13 weeks and 6 days ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. removals hartlepool
bojokey283 · 13 weeks and 4 days ago
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog.. alquiler de carros en santa marta
bojokey283 · 13 weeks and 3 days ago
Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. tree surgeons colchester
bojokey283 · 13 weeks and 1 day ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. Heimautomatisierung
bojokey283 · 13 weeks ago
Admiring the time and effort you put into your blog and detailed information you offer!.. coronavirus quintana roo
bojokey283 · 12 weeks and 3 days ago
Admiring the time and effort you put into your blog and detailed information you offer!.. cheap cloudlinux license
bojokey283 · 11 weeks and 5 days ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. https://www.shopfloor-analytics.de/
bojokey283 · 11 weeks and 3 days ago
I admire what you have done here. I like the part where you say you are doing this to give back but I would assume by all the comments that this is working for you as well. Cozumel restaurants
bojokey283 · 11 weeks and 2 days ago
I admire what you have done here. I like the part where you say you are doing this to give back but I would assume by all the comments that this is working for you as well. Cozumel restaurants
bojokey283 · 11 weeks and 2 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. isla mujeres mexico
bojokey283 · 11 weeks and 1 day ago
Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post. schlüsseldienst köln
bojokey283 · 10 weeks and 6 days ago
I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well! covid tulum
bojokey283 · 10 weeks and 2 days ago
Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. chemical products
xoheko1229 · 10 weeks ago
Nice to be visiting your blog once more, it has been months for me. Well this article that ive been waited for therefore long. i want this article to finish my assignment within the faculty, and it has same topic together with your article. Thanks, nice share. chemical products
xoheko1229 · 10 weeks ago
Please continue this great work and I look forward to more of your awesome blog posts. playa del carmen
bojokey283 · 9 weeks and 3 days ago
Great job for publishing such a beneficial web site. Your web log isn’t only useful but it is additionally really creative too. There tend to be not many people who can certainly write not so simple posts that artistically. Continue the nice writing ügyvéd Debrecen jogi tanácsadás
bojokey283 · 8 weeks and 6 days ago
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.. ügyvéd Debrecen jogi tanácsadás
bojokey283 · 8 weeks and 6 days ago
Thank you for this information.
FLM76 · 8 weeks and 2 days ago
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. yucatan cenotes map
xoheko1229 · 8 weeks and 1 day ago
Thank you for sharing this very helpful article! web design and development
jamesM · 8 weeks ago
I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!.. otomatisasi rumah
bojokey283 · 7 weeks and 6 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. rumah pintar
bojokey283 · 7 weeks and 3 days ago
car detailing near me | pressure" rel="nofollow">http://www.unclehouse.org/services/building-pressure-washing-chicago/'>pressure washing chicago | a href='https://www.chicagocomfortplus.com/water-heater-repair-chicago-il.html'>water heater repair chicago | a href='https://roofingwaterloo.com/'>roofing waterloo
Hamurabi · 7 weeks and 1 day ago
water heater repair chicago
Hamurabi · 7 weeks and 1 day ago
roofing waterloo
Hamurabi · 7 weeks and 1 day ago
roofing waterloo
Hamurabi · 7 weeks and 1 day ago
hardwood" rel="nofollow">http://www.woodcarvers.net/'>hardwood flooring refinishing
Hamurabi · 7 weeks and 1 day ago
Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. get from cancun to tulum https://www.islandlifemexico.com/getting-around-yucatan/
xoheko1229 · 7 weeks ago
I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. szerfelett tapasztalt ügyvéd Debrecen
bojokey283 · 7 weeks ago
I wanted to thank you for this great read!! I definitely enjoying every little bit of it I have you bookmarked to check out new stuff you post. coconuts Cozumel
xoheko1229 · 6 weeks and 5 days ago
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. cozumel what to do
xoheko1229 · 6 weeks and 3 days ago
Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. Dulce de Papaya
xoheko1229 · 6 weeks and 3 days ago
I read that Post and got it fine and informative. Dulce de Papaya
xoheko1229 · 6 weeks and 2 days ago
This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!. all inclusive hotel in tulum
xoheko1229 · 6 weeks and 2 days ago
Awesome article! I want people to know just how good this information is in your article. It’s interesting, compelling content. Your views are much like my own concerning this subject. best food in tulum
xoheko1229 · 6 weeks and 1 day ago
This is a great post. I like this topic.This site has lots of advantage.I found many interesting things from this site. It helps me in many ways.Thanks for posting this again. tulum ruins
xoheko1229 · 6 weeks and 1 day ago
I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the web will be a lot more useful than ever before. best beach in cancun
xoheko1229 · 5 weeks and 6 days ago
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. 5 star hotels in playa del carmen
xoheko1229 · 5 weeks and 6 days ago
This is a very interesting post. Great job. www.richmondmoldremovalservices.com/
Alex40 · 5 weeks and 5 days ago
<a href="https://www.richmondmoldremovalservices.com/">www.richmondmoldremovalservices.com/</a>
Alex40 · 5 weeks and 5 days ago
I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post. beaches in isla mujeres
xoheko1229 · 5 weeks and 4 days ago
Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene. best beach holbox
xoheko1229 · 5 weeks and 3 days ago
Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. best food in holbox
xoheko1229 · 5 weeks and 3 days ago
I have read your article, it is very informative and helpful for me.I admire the valuable information you offer in your articles. Thanks for posting it.. best hotel holbox
xoheko1229 · 5 weeks and 3 days ago
This is awesome! I like this. lawyers firms Seo Not For Hire
ChrisC · 5 weeks and 1 day ago
Thank for sharing my man! Awesome, I will share also soon! handyman columbia md
ChrisC · 5 weeks and 1 day ago
I will check on this. [male enhancement pills
noahwatson1988 · 4 weeks and 5 days ago
It takes much longer than using explorer.exe! Its the same speed as double clicking a file from windows explorer. concreting service in ballarat
IndigoCollier · 4 weeks and 5 days ago
hmmm.. some of the counters need improvement. But nice script though. Let's check some examples at aluminum patio enclosures st. petersburg
bobbrencher01 · 4 weeks and 4 days ago
Does this work well with music files from xterm as well, or is it only sutiable for photos and videos? Cheers carpet cleaning service toowoomba
IndigoCollier · 4 weeks and 4 days ago
Okay, it works. Tried it just now with some mp3 files and the command works just as well. Cheers. car detailing services in ballarat
IndigoCollier · 4 weeks and 4 days ago
Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. treatnheal
xoheko1229 · 4 weeks ago
Awesome. This is a nice command. car detailing
Connorrr · 4 weeks ago
Btw, how did you do it? legal services dayton ohio
Connorrr · 4 weeks ago
Excellent sample output! our lives would be so much easier if all commands included something like that. commercial painters in brisbane
CPBrisbane · 4 weeks ago
You're right, this does execute faster than cygstart. Now I can't imagine how people can prefer the latter. skip bin hire in Ipswich
SkipBinJim · 4 weeks ago
Tell me more about this! http://www.clutchcityonline.com">[click here]
GlennCrowder · 3 weeks and 6 days ago
[url=http://www.clutchcityonline.com]([click here])
GlennCrowder · 3 weeks and 6 days ago
Great articles and great layout. Your blog post deserves all of the positive feedback it’s been getting. treatnheal
xoheko1229 · 3 weeks and 5 days ago
The second line of code won't work with VLC as your default media player. It either needs to be Quicktime or Windows Media Player. Fencing services in Toowoomba
KirstieReeve · 3 weeks and 4 days ago
Thanks for putting so much effort on this code and I hope you'll keep 'em coming! Please kindly visit Naples Pool Service.
casseverhart13 · 3 weeks and 4 days ago
This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work Inteligentny dom
xoheko1229 · 3 weeks and 2 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. Automatyka domowa
bojokey283 · 3 weeks ago
I'll try to return back With A Completely different browser to check out Things! Also, I put a link to your post on my site, hope you do not mind? Continue here
jackslesly19 · 2 weeks and 5 days ago
Pretty good post. I am really impressed with the way you explain the things. Keep up the good work. https://www.foundationrepairkansascity.org/
Harvey01 · 2 weeks and 4 days ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. bathroom vanity
bojokey283 · 2 weeks and 2 days ago
Oh. I tried it but it is not working tsk. Can you guys help me? Accident Repair Gloucester
aldenbaigan · 2 weeks and 2 days ago
Thank you for some idea and tips. tree care company in Gloucester
aldenbaigan · 2 weeks and 2 days ago
Thank you for sharing by the way. Such a great post. Best locksmiths in the Gloucester area
aldenbaigan · 2 weeks and 1 day ago
Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!.. bathroom vanity
bojokey283 · 2 weeks and 1 day ago
Thank you sharing this very informative post. - Rain | <a href="http://www.treetrimmingraleigh.com">Tree Service Raleigh</a>
RainPage · 1 week and 6 days ago
<a href="http://www.treetrimmingraleigh.com">Tree Service Raleigh</a>
RainPage · 1 week and 5 days ago
This is such a refreshing site I love the way people are so open and write about their experiences and opinions. [Painter and Decorator Leicester](https://www.painteranddecoratorsleicester.co.uk)
MelanieB · 1 week and 3 days ago
Brilliant site thank you [Painter and Decorator](https://decoratorsoadbyandwigston.com)
MelanieB · 1 week and 3 days ago
Happiness Commercial Painter and Decorator Leicester
MelanieB · 1 week and 3 days ago
Wonderful information Painter and Decorator Hinckley
MelanieB · 1 week and 3 days ago
This is a refreshing site Painter and Decorator Oadby and Wigston
MelanieB · 1 week and 3 days ago
Please continue with this great site its so useful. Commercial carpet cleaning
MelanieB · 1 week and 3 days ago
i'm a big believer in commenting on blogs thank you for this wooden fence panels Leicester tree stump removal Water" rel="nofollow">www.landscapegardendesignleicester.co.uk'>Water features decking boards Leicester
MelanieB · 1 week and 3 days ago
This is such an interesting blog group. I look forward to reading much more. dog groomers Leicester
MelanieB · 1 week and 3 days ago
Love this site very informative patio" rel="nofollow">www.landscapegardendesignleicester.co.uk'>patio paving slabs Leicester
MelanieB · 1 week and 3 days ago
Great blog! https://www.landscapegardendesignleicester.co.uk
MelanieB · 1 week and 3 days ago
Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback. tulum resorts 5 star
xoheko1229 · 1 week and 2 days ago
This is awesome. Thank you for sharing. Ceramic Tile Installation
madmardigan · 1 week and 1 day ago
Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon. coronavirus holbox
bojokey283 · 1 week and 1 day ago
Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. covid holbox
bojokey283 · 1 week ago
I'll use the script on this one. nursing agencies
noahwatson1988 · 6 days ago
Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. Where to eat in Hualien
xoheko1229 · 5 days ago
Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. taroko gorge tour
bojokey283 · 5 days ago
awesome r o i great
ahmedsayeed1982 · 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: