public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
To: cygwin@cygwin.com
Cc: Doug Landauer <landauer@got.net>
Subject: Re: command to open Windows Explorer window "here"?
Date: Thu, 12 Sep 2002 19:56:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.44.0209122202420.19696-100000@slinky.cs.nyu.edu> (raw)
In-Reply-To: <Pine.GSO.4.44.0209122157420.19696-100000@slinky.cs.nyu.edu>

On Thu, 12 Sep 2002, Igor Pechtchanski wrote:

> On Thu, 12 Sep 2002, Doug Landauer wrote:
>
> > Does cygwin include a command-line command that would open a
> > WindowsExplorer window pointing at the current directory?
> >
> > Mac OS X has a command in Terminal called "open" that will decide which
> > application is the "right" one to use for just about any argument you
> > give it.  When you say "open ." in Terminal, it will open a Finder
> > window looking at that directory (".", i.e., the current directory).  So
> > I'm wondering whether cygwin on Windows has a similar function just to
> > that subset of what Mac OS X's "open" does.
> >
> >    Thanks in advance,
> >    Doug L.
>
> You can write one yourself, it's trivial.  You can use the following
> command:
>    /cygdrive/c/WINNT/explorer.exe /e,`cygpath -w "$1"`
>
> Hope this helps.
>         Igor

In fact, use `cygpath -w -a "$1"` to handle cases like ".", "..", etc.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

It took the computational power of three Commodore 64s to fly to the moon.
It takes a 486 to run Windows 95.  Something is wrong here. -- SC sig file


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2002-09-13  2:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-12 19:03 Doug Landauer
2002-09-12 19:34 ` Igor Pechtchanski
2002-09-12 19:56   ` Igor Pechtchanski [this message]
2002-09-12 20:17   ` Robert Collins
2002-09-13 10:30     ` Shankar Unni
     [not found] ` <Pine.GSO.4.44.0209122157420.19696-100000@slinky.cs.nyu.edu >
2002-09-12 19:58   ` Randall R Schulz
  -- strict thread matches above, loose matches on Subject: below --
2002-09-13 11:54 tmp
     [not found] <NEBBKHCFDGIGIJEHDJFCKENOEAAA.pderocco@ix.netcom.com>
2002-09-12 23:09 ` Robert Collins
2002-09-12 19:00 Doug Landauer
2002-09-13 13:42 ` Dean Austin
2002-09-13 23:23   ` Randall R Schulz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.44.0209122202420.19696-100000@slinky.cs.nyu.edu \
    --to=pechtcha@cs.nyu.edu \
    --cc=cygwin@cygwin.com \
    --cc=landauer@got.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).