Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
Subject: RE: Move to Windows Recycle Bin instead of deleting
Date: Tue, 14 Jan 2003 16:17:03 -0500
Message-ID: <83040F98B407E6428FEC18AC720F5D73E50179@exchange.tropicnetworks.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
From: "Rolf Campbell" <rcampbell@tropicnetworks.com>
To: <cygwin@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h0ELI7t27399

> -----Original Message-----
> From: Igor Pechtchanski [mailto:pechtcha@cs.nyu.edu] 
> Sent: Tuesday, January 14, 2003 4:06 PM
> To: Ralf Hauser
> Cc: cygwin@cygwin.com
> Subject: Re: Move to Windows Recycle Bin instead of deleting
> 
> 
> On Tue, 14 Jan 2003, Ralf Hauser wrote:
> 
> > Is there a way to have the files moved to the windows 
> recycle bin from 
> > the cygwin shell window/command line?
> 
> Yes.  In your ~/.bashrc:
> 
> RECYCLE_BIN_PATH="<location of your recycle bin>"
> function rm() { mv "$@" "$RECYCLE_BIN_PATH" }
> 
I would speculate that another problem with this is that if you view the
recycling bin in explorer, then you will no see (or be able to restore)
the cygwin files.  Also, if you empty the bin using explorer, then you
will likely leave all cygwin-moved files.

-Rolf

--
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/

