* command to open Windows Explorer window "here"?
@ 2002-09-12 19:03 Doug Landauer
2002-09-12 19:34 ` Igor Pechtchanski
[not found] ` <Pine.GSO.4.44.0209122157420.19696-100000@slinky.cs.nyu.edu >
0 siblings, 2 replies; 11+ messages in thread
From: Doug Landauer @ 2002-09-12 19:03 UTC (permalink / raw)
To: cygwin
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.
--
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: command to open Windows Explorer window "here"?
2002-09-12 19:03 command to open Windows Explorer window "here"? Doug Landauer
@ 2002-09-12 19:34 ` Igor Pechtchanski
2002-09-12 19:56 ` Igor Pechtchanski
2002-09-12 20:17 ` Robert Collins
[not found] ` <Pine.GSO.4.44.0209122157420.19696-100000@slinky.cs.nyu.edu >
1 sibling, 2 replies; 11+ messages in thread
From: Igor Pechtchanski @ 2002-09-12 19:34 UTC (permalink / raw)
To: Doug Landauer; +Cc: cygwin
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
--
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: command to open Windows Explorer window "here"?
2002-09-12 19:34 ` Igor Pechtchanski
@ 2002-09-12 19:56 ` Igor Pechtchanski
2002-09-12 20:17 ` Robert Collins
1 sibling, 0 replies; 11+ messages in thread
From: Igor Pechtchanski @ 2002-09-12 19:56 UTC (permalink / raw)
To: cygwin; +Cc: Doug Landauer
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: command to open Windows Explorer window "here"?
[not found] ` <Pine.GSO.4.44.0209122157420.19696-100000@slinky.cs.nyu.edu >
@ 2002-09-12 19:58 ` Randall R Schulz
0 siblings, 0 replies; 11+ messages in thread
From: Randall R Schulz @ 2002-09-12 19:58 UTC (permalink / raw)
To: cygwin
Igor, Doug,
I wrote my own "open," but it was less than ideal (for one thing, I never
figured out how to deal with file names that had spaces in them, though I
didn't try all that hard).
However, when this question came up a little while back (subtle enough for
ya'?), someone mentioned "cygstart" (part of the cygutils package).
That's what I'd recommend. It handles directories (they're sent to Windows
Exlpoder) and URLs (sent to your default browser) and all other files with
associations known on your system. Not to mention "much, much more" (like
editing, printing, window control, etc.).
Randall Schulz
Mountain View, CA USA
At 19:00 2002-09-12, 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" ...
> >
> > 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
--
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: command to open Windows Explorer window "here"?
2002-09-12 19:34 ` Igor Pechtchanski
2002-09-12 19:56 ` Igor Pechtchanski
@ 2002-09-12 20:17 ` Robert Collins
2002-09-13 10:30 ` Shankar Unni
1 sibling, 1 reply; 11+ messages in thread
From: Robert Collins @ 2002-09-12 20:17 UTC (permalink / raw)
To: cygwin; +Cc: Doug Landauer
[-- Attachment #1: Type: text/plain, Size: 91 bytes --]
On Fri, 2002-09-13 at 12:00, Igor Pechtchanski wrote:
Just try:
$ cygstart .
Rob
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: command to open Windows Explorer window "here"?
2002-09-12 20:17 ` Robert Collins
@ 2002-09-13 10:30 ` Shankar Unni
0 siblings, 0 replies; 11+ messages in thread
From: Shankar Unni @ 2002-09-13 10:30 UTC (permalink / raw)
To: cygwin
Robert Collins wrote:
> On Fri, 2002-09-13 at 12:00, Igor Pechtchanski wrote:
>
> Just try:
> $ cygstart .
Or even
explorer . # opens the directory
explorer /e,. # explores the directory
--
Shankar.
--
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: command to open Windows Explorer window "here"?
2002-09-13 13:42 ` Dean Austin
@ 2002-09-13 23:23 ` Randall R Schulz
0 siblings, 0 replies; 11+ messages in thread
From: Randall R Schulz @ 2002-09-13 23:23 UTC (permalink / raw)
To: cygwin
Dean,
The admonition to search the archives before posting applies to answering
as well as asking.
You were the third to recommend "cygstart."
Randall Schulz
Mountain View, CA USA
At 13:36 2002-09-13, you wrote:
>On Wed, Sep 11, 2002 at 02:01:51PM -0700, Doug Landauer wrote:
> >
> > Does cygwin include a command-line command that would open a
> > WindowsExplorer window pointing at the current directory?
> >
> > ...
> >
>If no one else has answered this, try "man cygstart". cygstart --open
>should give you what you're looking for.
>
>Regards,
>
>Dean
--
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: command to open Windows Explorer window "here"?
2002-09-12 19:00 Doug Landauer
@ 2002-09-13 13:42 ` Dean Austin
2002-09-13 23:23 ` Randall R Schulz
0 siblings, 1 reply; 11+ messages in thread
From: Dean Austin @ 2002-09-13 13:42 UTC (permalink / raw)
To: Doug Landauer; +Cc: cygwin
On Wed, Sep 11, 2002 at 02:01:51PM -0700, Doug Landauer wrote:
> [This followup was posted to gmane.os.cygwin and a copy was sent to the
> cited author.]
>
> 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" can do.
>
>
If no one else has answered this, try "man cygstart". cygstart --open
should give you what you're looking for.
Regards,
Dean
--
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: command to open Windows Explorer window "here"?
@ 2002-09-13 11:54 tmp
0 siblings, 0 replies; 11+ messages in thread
From: tmp @ 2002-09-13 11:54 UTC (permalink / raw)
To: cygwin
Randall wrote:
> ... when this question came up a little while back (subtle
> enough for ya'?), someone mentioned "cygstart" ...
Hey wow, an FSF-related mailing list search function that
doesn't take 5 minutes to do a search! Whaddaya know.
Sorry for the extra bandwidth. For reference, the June
discussion about this topic had the subject
Useful Cygwinism: "Explorer Here"
and started with
http://sources.redhat.com/ml/cygwin/2002-06/msg01595.html
FWIW, here's what I ended up with: two one-liner scripts in
my bin directory. One is called "o" and looks like this:
explorer `cygpath -w -a "${1-.}"`
it opens a one-pane explorer (no "Folders" showing).
My other script is called "oe" and adds the "/e" argument:
explorer /e,`cygpath -w -a "${1-.}"`
This one opens a two-pane explorer, showing the Folders tree.
If I get more ambitious, someday I might perhaps figure out how
to install the cygutils package to get "cygstart". But for now,
my cygwin doesn't seem to have it (nor does the ".inputrc" file
mentioned in the above thread have any effect at all), and these
mysteries will remain for some future, um, Exploration.
Anyway, thanks for all the help!
-- Doug L.
-=-=-=-
food. shelter. clothing. net. Got.net - The Internet Connection, Inc
--
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
* RE: command to open Windows Explorer window "here"?
[not found] <NEBBKHCFDGIGIJEHDJFCKENOEAAA.pderocco@ix.netcom.com>
@ 2002-09-12 23:09 ` Robert Collins
0 siblings, 0 replies; 11+ messages in thread
From: Robert Collins @ 2002-09-12 23:09 UTC (permalink / raw)
To: Paul D. DeRocco; +Cc: cygwin
[-- Attachment #1: Type: text/plain, Size: 191 bytes --]
On Fri, 2002-09-13 at 13:04, Paul D. DeRocco wrote:
> What package and category is that in? I don't have it.
You can search for it on the cygwin web site - use the packages link.
Rob
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* command to open Windows Explorer window "here"?
@ 2002-09-12 19:00 Doug Landauer
2002-09-13 13:42 ` Dean Austin
0 siblings, 1 reply; 11+ messages in thread
From: Doug Landauer @ 2002-09-12 19:00 UTC (permalink / raw)
To: cygwin
[This followup was posted to gmane.os.cygwin and a copy was sent to the
cited author.]
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" can do.
Thanks in advance,
Doug L.
tmp@i.am
--
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/
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2002-09-13 21:01 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-12 19:03 command to open Windows Explorer window "here"? Doug Landauer
2002-09-12 19:34 ` Igor Pechtchanski
2002-09-12 19:56 ` Igor Pechtchanski
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
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).