delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/27/14:51:33

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: <AANLkTimN1w-L7N7zUGAhghOoqJNbXwfHYqJ8c8fsk6Cy@mail.gmail.com>
References: <AANLkTik+ZpEz+HBW94mrkyiO-Cb6PSMK3M5btLojDw8- AT mail DOT gmail DOT com> <AANLkTimaYrdvcYWcCq47Zh3_YrQyf9WkiMhQOZC2Dq5_ AT mail DOT gmail DOT com> <AANLkTimN1w-L7N7zUGAhghOoqJNbXwfHYqJ8c8fsk6Cy AT mail DOT gmail DOT com>
Date: Fri, 27 Aug 2010 11:51:18 -0700
Message-ID: <AANLkTingHbpQoAT6gOOGZRa8aNpw9yC5euL1kJf6gZcz@mail.gmail.com>
Subject: Re: Windows batch program to open shell at directory specified as argument
From: Slide <slide DOT o DOT mix AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
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 Fri, Aug 27, 2010 at 11:42 AM, Dave Kilroy <kilroyd AT googlemail DOT com> wrot=
e:
> 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.
>


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019