delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/13/09:41:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.0.14.2.20020912192108.020699f8@pop3.cris.com>
X-Sender: rrschulz AT pop3 DOT cris DOT com
Date: Thu, 12 Sep 2002 19:35:48 -0700
To: cygwin AT cygwin DOT com
From: Randall R Schulz <rrschulz AT cris DOT com>
Subject: Re: command to open Windows Explorer window "here"?
In-Reply-To: <Pine.GSO.4.44.0209122157420.19696-100000@slinky.cs.nyu.edu
>
References: <6C36386A-C6BB-11D6-8AA0-003065E43436 AT got DOT net>
Mime-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019