X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <47F534CA.5FC6AEDC@dessent.net> Date: Thu, 03 Apr 2008 12:49:30 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: drag and drop folder from Explorer to cygwin References: <52388 DOT 7403 DOT qm AT web51910 DOT mail DOT re2 DOT yahoo DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Richard Trevor wrote: > I'd like to drag a folder from Windows Explorer (XP) and drop it on the cygwin desktop shortcut, > causing a cygwin (bash) shell to open in the folder directory. I don't think there's any magic to it, when you drop something onto a shortcut it just sets the arguments to the filenames of the items. So you'd need to modify the batch file to check if %1 is set and use the chere mechanism, i.e. cd to %1 and then set CHERE_INVOKING to prevent the /etc/profile from changing to $HOME. Brian -- 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/