X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 27 Aug 2010 11:51:18 -0700 Message-ID: Subject: Re: Windows batch program to open shell at directory specified as argument From: Slide To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Fri, Aug 27, 2010 at 11:42 AM, Dave Kilroy wrot= e: > On Thu, Aug 26, 2010 at 11:45 PM, Reckoner wrote: >> I use chere to right-click and open a shell at a given directory, and >> I was wondering if it is possible to setup a windows batch script that >> would accomplish the same thing from the Windows command line. In >> other words something like, >> >> c:> cygwin_start_dir.bat c:\mystuff\directory >> >> which would then open my favourite shell at the=A0c:\mystuff\directory. > > Yes, this is possible. You simply want to grab the command that chere > puts a registry and paste it into a batch file. You probably need to > fix up quoting, and change any %L to %1. > > Run 'chere -r' and look for the text associated with the command key. > > > Cheers, > > Dave. > You could also use something from this site: http://www.mindview.net/Etc/Cygwin/BashHere slide -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple