Windows batch program to open shell at directory specified as argument

Dave Kilroy kilroyd@googlemail.com
Fri Aug 27 18:51:00 GMT 2010


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



More information about the Cygwin mailing list