This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Move to Windows Recycle Bin instead of deleting


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]