delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/04/22:51:59

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: Two short scripts for Cygwin-Windows interoperation
Date: Thu, 04 Jan 2007 21:51:23 -0600
Lines: 27
Message-ID: <enkhvv$830$1@sea.gmane.org>
References: <loom DOT 20070104T172439-137 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
In-Reply-To: <loom.20070104T172439-137@post.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Rex Godby wrote:
> Two tiny Cygwin shell scripts may be of use. Each script has a single 
> active line, which I include here (to try these from the command line, 
> of course replace $1 with your desired argument):
>
> 1. To quickly find files and directories in "My Documents" and Desktop 
> (down to a certain depth):
>
> find "/cygdrive/c/Documents and Settings/$USER/Desktop" \
> "/cygdrive/c/Documents and Settings/$USER/My Documents" \
> -maxdepth 3 | grep "$1"
My desktop is empty and I keep nothing under C:\Documents and Settings 
nor "My Documents". In fact I've hacked them out of my registry. I have 
C:\Home\$USER (known to Cygwin as ~$USER) and no "My Documents" 
anywhere. And again, my desktop has nothing on it.
> 2. To open an Explorer window in a specified directory (given in 
> Cygwin style), or to open a document in the proper Windows application:
>
> /cygdrive/c/WINDOWS/explorer `cygpath -w "$1"`
They're are lots of methods for this. Indeed simply type "explorer ." 
works! Need it shorter "alias e=explorer" then "e ."!

-- 

Andrew DeFaria <http://defaria.com>
Just for today, I will not sit in my living room all day in my 
underwear. Instead, I will move my computer into the bedroom.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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