This is the mail archive of the
cygwin
mailing list for the Cygwin project.
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
- Date: Fri, 27 Aug 2010 19:42:01 +0100
- Subject: Re: Windows batch program to open shell at directory specified as argument
- References: <AANLkTik+ZpEz+HBW94mrkyiO-Cb6PSMK3M5btLojDw8-@mail.gmail.com> <AANLkTimaYrdvcYWcCq47Zh3_YrQyf9WkiMhQOZC2Dq5_@mail.gmail.com>
On Thu, Aug 26, 2010 at 11:45 PM, Reckoner <reckoner@gmail.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?c:\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