| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-SWARE-Spam-Status: | No, hits=-2.0 required=5.0 tests=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: | <AANLkTimaYrdvcYWcCq47Zh3_YrQyf9WkiMhQOZC2Dq5_@mail.gmail.com> |
| References: | <AANLkTik+ZpEz+HBW94mrkyiO-Cb6PSMK3M5btLojDw8- AT mail DOT gmail DOT com> <AANLkTimaYrdvcYWcCq47Zh3_YrQyf9WkiMhQOZC2Dq5_ AT mail DOT gmail DOT com> |
| Date: | Fri, 27 Aug 2010 19:42:01 +0100 |
| Message-ID: | <AANLkTimN1w-L7N7zUGAhghOoqJNbXwfHYqJ8c8fsk6Cy@mail.gmail.com> |
| Subject: | Re: Windows batch program to open shell at directory specified as argument |
| From: | Dave Kilroy <kilroyd AT googlemail DOT com> |
| To: | cygwin AT cygwin DOT com |
| 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 |
On Thu, Aug 26, 2010 at 11:45 PM, Reckoner <reckoner AT gmail DOT com> 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. -- 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |